from docx import Document
from docx.shared import Inches
document = Document(‘D:\SAB\Desktop\数据分析笔试试题\长亮数据-咨询部笔试题目-V1.0.docx‘)
for paragraph in document.paragraphs:
print(paragraph.text)
结果:
原文:https://www.cnblogs.com/yusuf/p/13393159.html