文章列表
从The Swift Programming Language中总结出来的,拷贝到Xcode6中即可运行。
import Foundation
println("Hello, World!")
//赋值
let myVar:Float = 4
println(myVar)
//值的转换没有隐式转换
let label = "The width is "
let width = 94
let widthLabel = label + String(width)
println(widthLabel)
//另一种将值装换 ...