在table中,nil不可以作为key,否则会有运行报错;而且,有时候使用#获取长度 ... local j = #t - i + 1 t[i],t[j] = t[j],t[i] -- swap end return tab.
確定! 回上一頁