a = 3
repeat
print(a)
a = a - 1
unit a == 1
a = 3
while a > 1 do
print(a)
a = a - 1
end
for i = 1 , 3 , 1 do
print(i)
end
for i = 1,3 do
print(i)
end
for i = 1, -3, -1 do
print(a)
end
4 lua 循环语句
最新推荐文章于 2024-04-20 21:21:55 发布