logo
  • 教程列表
  • SO官方文檔
  • 科特林的迴圈
    • 迴圈遍歷 iterables
    • 重複一次動作 x 次
    • 休息並繼續
    • 迭代 kotlin 中的地圖
    • 遞迴
    • 迴圈時
    • 用於迭代的功能構造
  1. StackOverflow 文件
  2. Kotlin 教程
  3. 科特林的迴圈
  4. 重複一次動作 x 次

重複一次動作 x 次

Created: November-22, 2018

repeat(10) { i ->
    println("This line will be printed 10 times")
    println("We are on the ${i + 1}. loop iteration")
}
  • 休息並繼續
  • 迴圈遍歷 iterables

Copyright © 2018. All right reserved

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

  • 關於本站
  • 免責聲明