【发布时间】:2018-08-16 16:50:55
【问题描述】:
我想在docx中写字母。我写了代码,
from docx import Document
document = Document()
document.add_heading("TITLE", 1)
document.save("test.docx")
但是当我运行代码时,TITLE的字母是蓝色的。我想在TITLE中添加黑色。我在docx文档中搜索了它的方式,但我找不到它。我应该怎么做?
【问题讨论】:
标签: python python-docx