Python:将Word转成HTML

图片在转换结果中,会以Base64编码的方式编码。html 前置条件:安装pydocxwindows pip install pydocxapp from pydocx import PyDocX html = PyDocX.to_html("test.docx") f = open("test.html", 'w', encoding="utf-8") f.write(html) f.close
相关文章
相关标签/搜索