不要在Lua 的table 中使用nil 值,如果一个元素要删除,直接remove,不要用nil 去代替。 ... a[2], a[3]) table.insert(a, 10) --在表的最后插入10 print(a[1], a[2], ...
確定! 回上一頁