import Foundation
let a = [75 , 43, 103, 87, 12]
var abc: String = "hi,baobao"
var i = 0, b = 3
let minValue = UInt8.min
let maxValue = UInt8.max
for i in a{
if(i>50)
{
print(String(i)+"i>50")
}else
{
print(String(i)+"i<50")
}
print(abc)
}
print(minValue)
print(maxValue)
//类别名
typealias abb = Int
var a1 = 11;
print(a1)
var bl = true
var i = 2
if i == 1 {
print("bl is ture")
}
else
{
print("bl is false")
}
print(bl)
var a = (404,"nihao")
var (b,c) = a
print(b)
print(c)
swfit 第二天
时间: 2024-11-12 10:45:52