--table的嵌套
playerInfo = {
[1]={160701,"Unity",33},
[2]={160702,"Ios",32},
[3]={160403,"H5",40},
}
print(playerInfo[1][2])
--排序函数
function mysort(x,y)
return x < y
end
--table的函数
--插入
ages = {23,20,21}
table.insert(ages,1,35)
table.remove(ages,1)
--function mysort(x,y)
--return x > y
--end
table.sort(ages,mysort)
for i ,v in ipairs (ages) do
print (v)
end