strings and ints

"Hello World"
"control + command + space = emoji "
var dog = "miki"  // declare a variable hold string
dog = 8   // illegal, cannot change type once defined

var name : String = "Hello"  // explicitly set variable type
var age : Int = 27
var cool : Bool = true

你可能感兴趣的:(strings and ints)