摘要:
Lua5.1中数学库的所有函数如下表: math.pi 为圆周率常量 = 3.14159265358979323846 abs 取绝对值 math.abs(-15) 15 acos 反余弦函数 math.acos(0.5) 1.04719755 asin 反正弦函数 math.asin(0.5) 0 阅读全文
posted @ 2018-12-03 14:27
知鹿
阅读(2411)
评论(0)
推荐(0)
摘要:
方法一,可以用for来遍历: 代码如下: do table_week = { "w", "e", "r", "t", "y", "u", "i", } for i = 1, #table_week do print(table_week[i]) end end #后面接一个数组或者tabe来遍历它, 阅读全文
posted @ 2018-12-03 13:12
知鹿
阅读(1944)
评论(0)
推荐(0)
浙公网安备 33010602011771号