raphael 2025-02-01 18:28:49

控制结构:循环

lua lua
-- For loop
for i = 1, 10 do
  print(i)
end

-- While loop
local i = 1
while i <= 10 do
  print(i)
  i = i + 1
end

评论

Home - Wiki
Copyright © 2011-2025 iteam. Current version is 2.142.1. UTC+08:00, 2025-04-04 18:50
浙ICP备14020137号-1 $Map of visitor$