table.maxn (table)    指定table中所有正数key值中最大的key值. 如果不存在key值为正数的元素, 则返回0。

math.max(unpack(testTable))  testTable为表名

 math.min(unpack(testTable))

相关文章:

  • 2021-06-02
  • 2021-12-05
  • 2021-05-19
  • 2021-06-21
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-03
  • 2022-02-05
  • 2021-05-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
相关资源
相似解决方案