目录 基础操作 对象关系 添加样式 中文字体微软雅黑,西文字体Times New Roman 首行缩进 单独设置标题样式 设置超链接 参考文档 基础操作 from docx import Document 添加样式 中文字体微软雅黑,西文字体Times New Roman import docx from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.oxml.ns 比如有文本内容如下,将其中的标签换为超链接: """I am trying to add an hyperlink in a MS Word document using docx module for Python. /en/latest/index.html https://github.com/python-openxml/python-docx/issues/74 http://www.warmeng.com/