xlsxwriter
모듈을 사용하여 Excel 파일을 만들고 쓰고 있습니다. 그러나 Excel 파일을 열면 다음 팝업이 표시됩니다.파이썬 xlsxwriter 수리 된 레코드 : /xl/sharedStrings.xml 부분의 문자열 속성 (문자열)
We found a problem with some content in 'excel_sheet.xlsx'. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes.
예를 클릭하면 Repaired Records: String properties from /xl/sharedStrings.xml part (Strings)
이 표시되고 내용을 볼 수 있습니다.
나는 이것이 write_rich_string
을 사용하여 작성한 셀 때문에 발생하는 것으로 나타났습니다.
my_work_sheet.write_rich_string(row_no, col_no,format_1, "Some text in format 1", format_2, "Text in format 2", format_1, "Again in format 1")
I가 발생하지 않습니다 write_string
이를 사용하여 작성하는 경우. format_1
및 format_2
에는 글꼴 이름, 색상, 크기 및 세로 정렬 세트가 있습니다.
누구나 무엇이 잘못 될지 제안 할 수 있습니까?
나는 이것을 위해 XlsxWriter에서 [버그 리포트 문제] (https://github.com/jmcnamara/XlsxWriter/issues/425)를 제기했다. – jmcnamara