比較好的方式是用 local 宣告局部變數(local variable):. local msg = "Hello World" print(msg). 使用 local 宣告的變數,其可視度(scope) 不會超出該Lua 命令稿, ...
確定! 回上一頁