>
a,b,c,d,e=1,2,"three","four",5 print(a,b,c,d,e)
R: 1 2 three four 5
>
print(a,b) a,b=b,a print(a,b)
R:
nil nil
nil nil
表示空
>
1 print("---------------------------"); 2 3 a,b,c,d,e=1,1.123,1E9,-123,.0008 4 print("a="..a,"b="..b,"c="..c,"d="..d,"e="..e)
R:
---------------------------
a=1 b=1.123 c=1000000000 d=-123 e=0.0008
》
print "hello from Lua!" print("hello from Lua!")
》
io.write("hello from Lua!") io.write("hello from lau!")
R
hello from Lua!hello from lau!
》