作者:乔山办公网日期:
返回目录:excel表格制作
如果安装过lua官方推荐的编译器luaforwindows的话你就可以去example里找到一个luaxml 里面有个test 就是e79fa5e98193e4b893e5b19e365演示程序
代码如下
require('LuaXml')
-- load XML data from file "test.xml" into local table xfile
local xfile = xml.load("test.xml")
-- search for substatement having the tag "scene"
local xscene = xfile:find("scene")
-- if this substatement is found?
if xscene ~= nil then
-- 卲rint it to screen
print(xscene)
-- print tag, attribute id and first substatement
print( xscene:tag(), xscene.id, xscene[1] )
end
-- create a new XML object and set its tag to "root"
local x = xml.new("root")
-- append a new subordinate XML object, set itstag to "child", and its content to 123
x:append("child")[1] = 123
print(x)
将数据保存为csv文件格式,excel可以直接打开。
根据你的描述:
.so是动态文件。。你查下怎么在ios编译和安卓编译的时候加入动态文件
1.luacom
可以打开 excel 文件
得到里面的数据后,输出就可以随意整了
2. 使用 excel 可以另存为 Office 2003 的 xml 文件,但不能存图片等