简体   繁体   中英

Python, copy xls file with marking

I need to copy/edit existing sheet of xls file to new file with marking. What i've tried:

import xlrd
from xlutils.copy import copy
workbook = xlrd.open_workbook('template1.xls')
new_wb = copy(workbook)
new_wb.save("test.xls")

But marking is not saved. Existing file is something eg: 现有xls文件的屏幕截图

Result after "copy" is: 复制结果

Help me please.

The best answer was in comments. I have reached answer limit, so need to set best answer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM