Python读写LibreOffice Writer文档
LibreOffice Writer是一个开源的字处理工具,Word的替代品.Python利用odfpy库读写odt文档.
https://stackoverflow.com/questions/51054770/how-to-read-odt-using-python
代码:
from odf import text, teletype
from odf.opendocument import load
textdoc = load("your.odt")
allparas = textdoc.getElementsByType(text.P) ...