100 Days of SwiftUI 04
2020-11-06 本文已影响0人
脑子
for _ in 1 ..< 5 {
print("我来了!")
}
----------------------
var number = 20
while number >= 1 {
print(number)
number -= 1
}
print("准备好了没?我来啦!")
---------------------
var num = 1
repeat{
print(num)
num += 1
} while num <= 5
---------------------
repeat{
print("false!,这个只能运行一次")
}while false
----------------------
while false {
print("这个print永远不会运行")
}