--table的集合使用
--tab了的key值必须是字符串类型
--dic = {1,name = "lanou",age= 4,55,54}
--dic.name = "蓝鸥"
--dic.age= 4
--print(dic.name)
--print(#dic)
--print(dic[2])
dic = {name = "lanou ",age = 4}
--lua里面的foreach遍历
for i ,v in pairs(dic) do
print(i,v)--遍历键值对
print(i)--只遍历key值
end