摘要:
-- list索引从1开始 list = {} list.__index = list function list:new() local o = {} setmetatable(o, self) return o end function list:add(item) table.insert(s 阅读全文
摘要:
map = {} local this = map function this:new() o = {} setmetatable(o,self) self.__index = self self.count = 0 return o end -- put在放入数据时,如果放入数据的key已经存在M 阅读全文