类型初始化

//"let" for constants, "var" for variables

//Int
let number = 42, otherNumber = 37
let maxInt64: UInt64 = UInt64.max
let Mb = 1_048_576

//Double
let exp = 2.71828
let billion = 1E+9

//Float
let pi: Float = 3.14

//String
var text = "Hello"

//Multiline String
text = """
this is some
multiline text
"""

//Bool
let sunIsStar = true
let needBackUp = false

//Character "A"
let charA: Character = "A"//"\u{65}"

//Tuple (Int, String)
let one = (1"one")

print("number is", number)
print("otherNumber is", otherNumber)
print("maxInt64 is", maxInt64)
print("Mb is", Mb)
print("exp is", exp)
print("billion is", billion)
print("pi is", pi)
print("text is \"\(text)\"")
print("sunIsStar is", sunIsStar)
print("needBackUp is", needBackUp)
print("charA is", charA)
print("one is", one)