--遍历数组
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
--遍历数组
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
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。