loop @ for (i in 1..100) { // …… } 现在,我们可以用标签限制break ... break@loop ... if (it == 3) return@loop // 从传入run 的lambda 表达式非局部返回 print(it)
確定! 回上一頁