lua goto
时间:2020-07-12 18:21:36
收藏:0
阅读:70
goto Label
:: Label ::
用goto实现continue的功能
for i=1, 3 do
if i <= 2 then
print(i, "yes continue")
goto continue
end
print(i, " no continue")
::continue::
print([[i‘m end]])
end
注:lua中没有continue语句
原文:https://www.cnblogs.com/guomengkai/p/13288975.html
评论(0)