2023-09-27 01:47:47 +00:00
|
|
|
print " 1"
|
2023-09-27 01:31:00 +00:00
|
|
|
|
2023-09-26 18:46:01 +00:00
|
|
|
print (nil)
|
|
|
|
print (false)
|
|
|
|
print (true)
|
|
|
|
print (1993)
|
2023-09-26 19:23:57 +00:00
|
|
|
print (1993.00)
|
2023-09-24 21:16:10 +00:00
|
|
|
print "Hello."
|
2023-09-26 20:49:12 +00:00
|
|
|
|
2023-09-27 01:47:47 +00:00
|
|
|
print " 2"
|
2023-09-27 01:31:00 +00:00
|
|
|
|
2023-09-26 20:49:12 +00:00
|
|
|
local t = {}
|
|
|
|
print (t)
|
2023-09-27 01:31:00 +00:00
|
|
|
print (t [1])
|
|
|
|
t [1] = "asdf"
|
|
|
|
print (t [1])
|
|
|
|
t.x = 1993
|
|
|
|
print (t.x)
|
|
|
|
|
|
|
|
t.t = { 3.14159 }
|
|
|
|
print (t ["t"][1])
|
|
|
|
|
2023-09-27 01:47:47 +00:00
|
|
|
print " 3"
|
|
|
|
|
|
|
|
local c = {}
|
|
|
|
c [1] = "ddd"
|
|
|
|
|
|
|
|
local a = { c }
|
|
|
|
local b = { c }
|
|
|
|
|
2023-09-27 02:43:02 +00:00
|
|
|
print (a [1][2])
|
|
|
|
print (b [1][2])
|
2023-09-27 01:47:47 +00:00
|
|
|
|
|
|
|
c [2] = "eee"
|
|
|
|
|
2023-09-27 02:43:02 +00:00
|
|
|
print (a [1][2])
|
|
|
|
print (b [1][2])
|