相关函数 table.getn() 应用示例 print(table.getn{10,2,4}) –> 3print(table.getn{10,2,nil}) –> 2print(table.getn{10,2,nil; n=3}) –> 3 参考资料 19.1 数组大小 Lua程序设计