import docx
# 读取docx文档内容
def readWord():
doc = docx.Document('demo.docx')
fullText = []
for para in doc.paragraphs:
fullText.append(' ' + para.text)
print('\n' . join(fullText))
readWord() 官方API: ;