乔山办公网我们一直在努力
您的位置:乔山办公网 > excel表格制作 > 如何将<em>lua</em>文件中的数据导出至<em>excel</em&g

如何将<em>lua</em>文件中的数据导出至<em>excel</em&g

作者:乔山办公网日期:

返回目录: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 文件,但不能存图片等

相关阅读

关键词不能为空
极力推荐
  • 新人求EXCEL技巧大全-excel手册,excel函数手册

  • 工作表的删除单击“编辑→删除工作表”命令,然后单击“确定”按钮,则这个表将从工作簿中永久删除。注意:“删除工作表”命令是不能还原的,删除的工作表将不能被恢复。 快速选

ppt怎么做_excel表格制作_office365_word文档_365办公网