Lua for Windows 開始學習Lua程式設計

2021-08-31 07:34:51 字數 1596 閱讀 3016

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!

lua for windows is a 'batteries included environment' for the lua scripting language on windows.這是在windows上學習lua的整套開發環境,包含installer lua interpreter, lua reference manual, quick lua tour sample, examples directory, libraries with documentation. lua compiler (luac) text editors (scite and i think maybe wxlua editors too) c header files/libraries/etc. for building c module

當前版本:5.1.4-45

...\lua\5.1\scite"下,開啟

scite.exe檔案,新建乙個文件,儲存為"

hello.lua",文件內容如下: 1

print(

"hello,lua")

按下f5,在下面的輸出視窗將會有如下內容: 

12

3

>lua -e "io.stdout:setvbuf 'no'" "hello.lua"  

hello,lua

>exit code: 0

執行結果圖如下所示:

在" ...\lua\5.1\examples"目錄下,有個"

quickluatour.lua"是一些快速入門的示例。其中有個例子,是利用

iuplua顯示對話方塊的,新建乙個"

test.lua"檔案,內容如下: 

12

3

4

5

6

7

8

9

10

11

require( 

"iuplua" )

ml = iup.multiline

dlg = iup.dialog

dlg:show()

print(

iup.mainloop()

儲存。在命令提示符下輸入"

lua test.lua",回車,效果如下所示:

給我老師的人工智慧教程打call!

Lua for Windows 開始學習Lua程式設計

lua windows installer scripting compiler reference lua for windows is a batteries included environment for the lua scripting language on windows.這是在wi...

開始的開始

剛學習ios開發的時候,在網上看前輩們總結經驗,其中一條建議就是建立乙個自己的部落格,把自己學習過程中遇到的問題 解決方法和重要的知識點記錄下來,既可以增加印象也便於以後回顧複習。算算時間,自辭職開始自學ios也有三個月了,慚愧的是一直沒有建立自己的部落格,只是把知識點零零碎碎地記錄在印象筆記裡了。...

開始的開始

好像已經不能算是開始了 學程式設計也學了一年了,馬上已經到了開學第八周,期中的時候,越發覺得自己的程式設計能力致命的渣。開這個部落格主要是想要好好督促自己學習程式設計吧。大一的時候一入門學的就是c 當時學的挺吃力的 因為是計算機小白,啥也不懂 雖然現在也是 但是多多少少比當時厲害了些,現在開始學習資...