Believe in your own future, will thank yourself right now Sinner Yun

Sinner_Yun

Swift 遍历数组元素

 1           for index in 0..<Array.count {
 2                 Array[index]
 3             }
 4             
 5             
 6             
 7             
 8             for (index, element) in Array.enumerate() {
 9                 print(("\(index+1): \(element)")
10             }
11             

 

posted on 2016-05-26 11:37  Sinner_Yun  阅读(558)  评论(0编辑  收藏  举报

导航