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