lua-遍历数组

--遍历数组

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