--类
Student = { name = "Holens",age = 1,sex = true,Say1 = function()print(Student.name.."说话了")end,Say2 = function(t)print(t.name.."说话了2")end
}
Student.Say1()
print("*************************************")--声明后添加
Student.child = "blueman"
print(Student.child)--lua中.和:区别
--:会默认把调用者 作为第一个参数传入方法
Student:Say2()
print("*************************************")