cat 1.lua ``` arg[1] = '111' arg[2] = '222' dofile('./2.lua') ``` cat 2.lua ``` print("First argument is: " .. arg[1]) print("Second argument is: " .. arg[2]) ``` 执行 `lua 1.lua`,结果为: First argument is: 111 Second argument is: 222 lua 版本 5.2.4