在Lua,函數是第一公民,是基本型別,可以榜定於變數,也可以作為參數傳遞,或是回傳值。 function genFun() return function() print("Hello, World") end end function ...
確定! 回上一頁