Unity 数据配置工具思考 - daaoling/daaoling.github.io GitHub Wiki
根据Protobuf定义的潜规则 规定每一列的格式内容 然后把excel变成protobuf规定的pbt 之后就内存数据库加载pbt就行了
在每一行上加个格式定义 excel => csv => 直接生成内存数据库
目前项目中 : excel => 数据库 根据数据库建表的格式定义 => 生成 txt => 内存数据库加载txt
http://www.oschina.net/p/go-xslx http://blog.csdn.net/Neil3D/article/details/40452185 https://github.com/zhangqi-ulua/XlsxToLua
https://github.com/hempalex/xls2csv/blob/master/xls2csv.py
因为 Excel treats all numbers as floats. 这样如果python 用xlrd模板导出的表
id name 1 张三
变成
id name 1.0f 张三
如果加个格式定义也不行 比如
string
1
这时候你怎么搞 有时候是要 string:1.0 有时候就要 string:1 哎