我遇到python,Mysql和docx问题。所以我有这个word文档,我正在阅读它,所以我的目标是从word document(x)中读取并在数据库的特定列中搜索(x),如果存在,则将下一个列复制到另一个列中。 py文件,我正在用paython做所有这些 当我写的时候:
mycursor.execute("SELECT code FROM table1 WHERE human_code REGEXP 'doc.tables[1].rows[1].cells[1].paragraphs[1].text'")
我什么都没有
但是doc.tables[1].rows[1].cells[1].paragraphs[1].text
在数据库中给了我相同的行