Openpyxl.utils.exceptions.IllegalcharacterError
问题 I have the following code to write processed words into excel file. The words are about 7729 From openpyxl import * book=Workbook () sheet=book.active sheet.title="test" for x in range (7729): sheet.cell (row=1,column=x+1).value=x book.save ('test.xlsx') This is the code I used looks like. But when I run it it gives me an error that says openpyxl.utils.exceptions.IllegalCharacterError This is my first time using this module, I would appreciate any kind of help. 回答1: Try this : This code works