var greeting = "Hello, playground"
print(greeting)
var str = "just type some things "
var str2 = "just get lost of it"
print(str,str2,greeting)
print(str+str2+greeting)
print(str)
var m = 3.22
var n = 3/4
print(m,n)
var baoyuan = "why it is so slowely!!!!"
print(baoyuan)
var baoyuan2 = "i can't feel it is fast! so what!"
print(baoyuan2)
m = 8
n = 9
//不换行
print(Float(m)+Float(n),terminator: "")
//结尾编程别的
print("11",terminator: "gogogo!")
print(Int(m))
输出为:
Hello, playground
just type some things just get lost of it Hello, playground
just type some things just get lost of itHello, playground
just type some things
3.22 0
why it is so slowely!!!
i can’t feel it is fast! so what!
17.011gogogo!8
以上,就是swift学习第一天了哈哈,很幼稚有木有