logo
  • 教程列表
  • SO官方文档
  • 循环
    • For-in 循环
    • 重复循环
    • 带过滤的 For-in 循环
    • 每个块的序列类型
    • 循环
    • 打破一个循环
  1. StackOverflow 文档
  2. Swift Language 教程
  3. 循环
  4. 循环

循环

Created: November-22, 2018

只要条件为真,就会执行 while 循环。

var count = 1

while count < 10 {
    print("This is the \(count) run of the loop")
    count += 1
}
  • 打破一个循环
  • 每个块的序列类型

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明