【文件属性】:
文件名称:python 多个文本文件转excel表格处理 生成汇总sheet
文件大小:5.52MB
文件格式:7Z
更新时间:2022-08-25 16:56:01
python excel xlwt xlrd
使用python库xlwt,xlrd
将多个纯文本中的数据(空格分隔)导入excel,用文件名作为sheet名
然后再生成汇总的sheet,第一个sheet取前两列作为固定列,取导入的所有sheet中的关键数据列追加汇总
eg:
sheet1.txt 类型 名字 数据1 数据2 数据3
sheet2.txt 类型 名字 数据1 数据2 数据3
sheet3.txt 类型 名字 数据1 数据2 数据3
生成excel
sheet1 类型 名字 数据1 数据2 数据3
sheet2 类型 名字 数据1 数据2 数据3
sheet3 类型 名字 数据1 数据2 数据3
汇总 类型 名字 sheet1.数据3 sheet2.数据3 sheet3.数据3
pyinstaller打包python脚本,生成exe文件,over