标签:
1. Lua -i main.lua
-i 进入交互模式
-l 加载一个库
-e “lua code” 直接在命令行执行lua code
2. 注释
-- This is a line comment --[[ This block show how to block commenting some lines ]]--
3. 数据数型
There are eight basic types in Lua: nil, boolean, number, string, function, userdata, thread, and table.
标签:
原文地址:http://www.cnblogs.com/awiki/p/5194539.html