報錯解決:docx.opc.exceptions.PackageNotFoundError: Package not found at ‘../../test.docx‘

在使用python的python-docx模塊時出現以下報錯: docx.opc.exceptions.PackageNotFoundError: Package not found at '../../test.docx 報錯原因:新建的word文檔裏面沒有任何內容, 解決辦法:只需要在docx文檔中隨意輸出一些內容就能解決此問題。
相關文章
相關標籤/搜索