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

评论

- 위키
Copyright © 2011-2025 iteam. Current version is 2.142.1. UTC+08:00, 2025-04-05 07:10
浙ICP备14020137号-1 $방문자$