我有一个使用xlutils、xlrd、xlwt(从python-excel.org下载的新库)的简单代码,可以复制文件而不会丢失格式。但是我遇到了以下错误:
from xlwt.Workbook import *
from xlwt.Style import *
from xlrd import open_workbook
from xlutils.copy import copy
import xlrd
style = XFStyle()
rb = open_workbook('file_master.xlsx', formatting_info=True)
wb = copy(rb.get_sheet(0))
new_book = Workbook()
w_sheet = wb.get_sheet(0)
w_sheet.write(6,6)
wb.save('new_file_master.xls')
错误:
raise NotImplementedError("formatting_info=True not yet implemented")
NotImplementedError: formatting_info=True not yet implemented
你能帮我解决这个问题或让它正常工作吗?