lua流水帳2:table

1.Lua中習慣上數組的下標從1開始,Lua的標準庫與此習慣保持一致 2.鏈表的實現:web function CreateList(n) local list = nil; for i = 1,n do list = {next = list, value = i}; end return list; end function PrintList
相關文章
相關標籤/搜索