Search and Replace in python-docx

陌路散爱 提交于 2019-12-06 09:15:52

Looks like you're getting python-docx v0.3.0+ API mixed in with the legacy v0.2.x API for starters. python-docx v0.3.0 is a full rewrite with an object-oriented API, which is not compatible with prior versions. Documentation for the new version is here: python-docx.readthedocs.org/en/latest/index.html. A Document instance is no longer an Element object so no longer has an .xpath method.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!