函數宣告. 函數可以使用 function 來做宣告,並以 end 結束。 function hello() print("Hello, World") end. 實際上這是Lua的語法糖,上面相當於:
確定! 回上一頁