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.
时间: 2024-10-10 05:20:59