Lua的系統庫

1.向table裏面動態添加值: local t={} for i=1,10 do table.insert(t,i) end for k,v in pairs(t) do print(k,v) end 2.向table中刪除值: local t={} for i=1,10 do table.insert(t,i) end table.remove(t,2) for k,v in pairs(t)
相關文章
相關標籤/搜索