from docx import Document # 导入库
for i, e in enumerate(document.paragraphs):
print(e.text)
for i, e in enumerate(document.tables):
table = document.tables[i]
尝试使用python-docx库获取document的paragraphs和table,发现使用word插入的形状中的文字不在其中
该如何读取word中的形状中的文字?