--lua的包与模块
--定义了一个名为Student的模块
Student={Chinese=90,math=100,English=60}
--模块的三个方法
function Student.printChinese()
print(Student.Chinese)
end
function Student.printMath()
print(Student.math)
end
function Student.printEnglish()
print(Student.English)
end
return Student
require(“LuaTest/Module”)
–lua的模块与包
Student.printChinese()
Student.printMath()
Student.printEnglish()