--遍历数组
arrAges= {1,"123",5,true,9}
for i = 1,5 do
print(arrages[i])
end
--#运算符 取table和字符串长度
--table下表从1开始
for i=1,#arrAges do
print(arrAges do)
end
转载于:https://www.cnblogs.com/ningyongbin/p/6005532.html
--遍历数组
arrAges= {1,"123",5,true,9}
for i = 1,5 do
print(arrages[i])
end
--#运算符 取table和字符串长度
--table下表从1开始
for i=1,#arrAges do
print(arrAges do)
end
转载于:https://www.cnblogs.com/ningyongbin/p/6005532.html