zoukankan      html  css  js  c++  java
  • lua--table

    Table.getn(t)等价于#t

    Table.getn()计算的是数组元素,不包括hash键值。

    数组是以第一个nill元素来判断数组结束。

    例如a={1,2,3},b={1,2,3,nill},c={1,2,3,nil,nil}  三个table的长度都为3。

    Table.maxn()计算的是所有元素的数值索引。不计算hash键值。

  • 相关阅读:
    MySQL
    MySQL -数据库备份
    MySQL
    MySQL
    MySQL
    MySQL
    MySQL
    MySQL
    MySQL
    53端口反弹shell
  • 原文地址:https://www.cnblogs.com/t-young1201/p/4281753.html
Copyright © 2011-2022 走看看