不要在Lua 的table 中使用nil 值,如果一个元素要删除,直接remove,不要用nil 去代替。 ... a[4], a[5]) table.sort(a, compare) --使用比较函数进行排序 print(a[1], ...
確定! 回上一頁