Windows Lua HelloWorld

Windows Lua HelloWorld教程

我们直接打开安装好的 Lua 的路径里面的 lua.exe 程序,此时如下所示:

14_Windows Lua HelloWorld.png

接着,我们在光标后面输入如下代码:

print("Hello HaiCoder(www.haicoder.net)")

运行后,如下所示:

15_Windows Lua HelloWorld.png

我们看到,同样正确输出了 Hello HaiCoder(www.haicoder.net) 的字样。