顺序结构
for i in 0..<10{
}
循环结构
for var i = 10 ; i <</span> 100 ; i++ {
}
var zz = 2
while zz <= 22 {
}
repeat{
}while
switch vv{
case value:
fallthrough 跳入下一个case
case value1,value2: 判断多值
case 1..<60:
case (_ ,5):
}
选择结构
控制转移
where
if case 1...19 = 12 {
}
for case let i in 1...100 where i % 3 == 0 {
}
guard 确保,保证