1.1、全局变量
b=nil
print(b)->nil
1.2、类型与值 :type,boolean
//type use
print(type("hello world"))->string
print(type(123))->number
print(type(function))->function
//boolean use
boolean:true or false.
数字零和空字符串默认为true
1.3 String 字符串 gsub
a="one string"
b=string.gsub(a,"one","another")
print(b)->another string
1.4 Table 使用
list=nil;//init
list = {color="131",tne=2,np=3,{x=1,y=0},{x=9,y=3},{x=-1,y=2}}
print(list[2].x)->9
print(list["np"])->3