Python 从docx文件读取特殊字符时出错。我需要一盒表格
我尝试使用docx库从word文档中获取一个特殊字符(一个表单框)。我的代码是:Python 从docx文件读取特殊字符时出错。我需要一盒表格,python,docx,Python,Docx,我尝试使用docx库从word文档中获取一个特殊字符(一个表单框)。我的代码是: for position, block in enumerate(documentList): if ("EXPL" in normalize_string(block.text) and "PERSON" in normalize_string(block.text)): table = documentList[position+3].table text = tabl
for position, block in enumerate(documentList):
if ("EXPL" in normalize_string(block.text) and "PERSON" in normalize_string(block.text)):
table = documentList[position+3].table
text = table.cell(1,1).text
结果是普通文本,没有一个表单框
谢谢