1
myyou May 9, 2018
保存的时候改名字
|
2
bomb77 May 9, 2018
xlutils
|
5
golmic May 9, 2018 via Android
最关键的代码被你省略了。。。
|
7
SingeeKing PRO 换成 xlutils
BUT 为什么不用 openpyxl |
8
anguslg May 10, 2018
看了下文档, ctable 在 save 之前大概要先 add_sheet
不过 更推荐用 pandas.DataFrame 处理 |
9
catzh May 10, 2018
同问,为什么不用 openpyxl ?
|
10
myyou May 10, 2018
from xlutils.copy import copy
用这个 copy 可以在原有 Excel 修改 |
11
jfry May 10, 2018
建议用 openpyxl,而且如果需要制作报表的话可以看看 [toaco/tablereport: A python library for making table report.]( https://github.com/toaco/tablereport),完全兼容 openpyxl,哈哈,溜了溜了
|
12
liuxun349 OP |
14
TGlivecoding May 10, 2018
其实更推荐你用 http://xlsxwriter.readthedocs.io/ 现在用.xls 的不多了
|
15
iblislsy May 10, 2018
pandas 在保存 excel 的时候有一个参数 sheet_name, 了解一下
|