python docx修改word内容保留图片

问题描述 修改word中文本,以下代码,保存时会致使word中的部分图片消失python from docx import Document path1 = 'test_in.docx' path2 = 'test_out.docx' file = docx.Document(path1) for parg in file.paragraphs: if parg.text:
相关文章
相关标签/搜索