type的使用

来源:互联网 发布:江苏远洋数据 编辑:程序博客网 时间:2024/06/15 02:39
print(type("Hello Lua")) --string
print(type(100))  --number
print(type(100.0))  --number
print(type(true))  --boolean
print(type(print))  --function
print(type(nil)) --nil
print(type({x = 10, y = 20})) --table
原创粉丝点击