如果未提供排序函数,sort使用默认的小于操作符进行比较。 ... for n in pairs(lines) do table.insert(a, n) end ... 注意,对于Lua来说,数组也是无序的。
確定! 回上一頁