xlutils only works on xls, not xlsx?
问题 I have an existing Excel workbook, Workbook_A . I'm creating an identical workbook, Workbook_B , and then insert a few values into some of the cells in the new workbook. A simplified version of what I'm doing: from xlrd import open_workbook from xlutils.copy import copy rb = open_workbook(Workbook_A) wb = copy(rb) s = wb.get_sheet(0) s.write(row, col, value) wb.save(Workbook_B) Workbook_A can be an xlsx file here, but I must save it as an xls file, Workbook_B.xls . Otherwise the file becomes