跳转到内容
新建笔记

循环

(1)while 循环:

local i = 1
while i <= 3 do
print("hi")
i = i + 1
end

(2)for 循环:

for i = 1, 3 do
print("hi")
end