letnameArr = ["one","two"]
letdataArr = [].mutableCopy()
for s in nameArr {
print(s)
}
for index in 1...5{
dataArr.addObject(index)
print(dataArr)
}
for i in 0..<100 {
print(i)
}
letnameArr = ["one","two"]
letdataArr = [].mutableCopy()
for s in nameArr {
print(s)
}
for index in 1...5{
dataArr.addObject(index)
print(dataArr)
}
for i in 0..<100 {
print(i)
}
本文标题:swift for循环
本文链接:https://www.haomeiwen.com/subject/ntposttx.html
网友评论