摘要: base.lua脚本 阅读全文
posted @ 2019-03-06 21:47 Answer.AI.L 阅读(415) 评论(0) 推荐(0) 编辑
摘要: require("luacom"); require("lc"); --创建excel对象 local excel = luacom.CreateObject("Excel.Application"); --创建新的实例 excel.Visible = false; local book =excel.Workbooks:Add(); --读第一个工作表 local sheet = bo... 阅读全文
posted @ 2019-03-06 21:47 Answer.AI.L 阅读(2946) 评论(0) 推荐(0) 编辑
摘要: Student = {}; Student.__index = Student; function Student:new(name, age) local temp = {}; setmetatable(temp, Student); temp.name = name; temp.age = age; return temp; end functi... 阅读全文
posted @ 2019-03-06 21:46 Answer.AI.L 阅读(530) 评论(0) 推荐(0) 编辑