安装 pip install python-docx 简单示例,写入 from docx import Document word_file_1 = Document() word_file_1.add_paragraph('A plain paragraph') word_file_1.save('test.docx') 来源:https://www.cnblogs.com/python-abc/p/11715943.html 标签 docx