for i in 0 ..< 10
{
print(i)
}
print("-----------")
for i in 0...10
{
print(i)
}
//Rang<Int> 泛型
let range = 0...10
for i in range
{
print(i)
}
for i in 0 ..< 10
{
print(i)
}
print("-----------")
for i in 0...10
{
print(i)
}
//Rang<Int> 泛型
let range = 0...10
for i in range
{
print(i)
}
本文标题:循环
本文链接:https://www.haomeiwen.com/subject/lsrzettx.html
网友评论