美文网首页
For 循环

For 循环

作者: 秋分落叶 | 来源:发表于2019-05-15 14:38 被阅读0次

for ((index, value) in array.withIndex()) { println("the element at $index is $value")}

for (index in items.indices) { println("item at $index is ${items[index]}") }

相关文章

网友评论

      本文标题:For 循环

      本文链接:https://www.haomeiwen.com/subject/bbupaqtx.html