最近项目框架已好,开始在考虑下个项目的事情,哈哈~~
这个项目催的很,就直接上C++了,下个用lua搞,我个人也比较喜欢lua。
游戏中策划的excel配置表肿么导,成了个问题,以前直接弄成sqlite3,既然用lua脚本,那直接弄成lua吧
下载Python 2.7和xlrd,这两个的安装方法大家百度。
在要打包的excel文件夹下新建个out文件夹吧,本来想直接脚本弄的,后来太晚了,以后再搞,有空了弄,哈哈~
直接上python脚本吧
#!/usr/bin/python
# encoding=utf-8
import sys, os
import xlrd
reload(sys)
sys.setdefaultencoding('utf-8')
def main(seachPath):
InputPath = seachPath
readPath(seachPath)
def readPath(path):
# outputPath = path + "/" + "out"
# removeCmdCommond = "rm rf " + outputPath
# print removeCmdCommond
# createCmdCommond = "mkdir " + outputPath
# print createCmdCommond
# os.system(removeCmdCommond)
# os.system(createCmdCommond)
#
filelist = os.listdir(path)