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

  • 關於本站
  • 免責聲明