for i=0,100 do   --0-100 执行101次
    print(i);
end

for i=0,100,2 do
    print(i);
end

for i=100,0,-2 do
    print(i);
end

注意:for中无continue
Copyright © TouchNet 2015 all right reserved,powered by Gitbook最后修订时间: 2022-06-21 09:21:04

results matching ""

    No results matching ""