(1)while 循环:
local i = 1 while i <= 3 do print("hi") i = i + 1end
(2)for 循环:
for i = 1, 3 do print("hi")end