我已经创建了一个模板,并成功地写入了这样的变量:
tpl = DocxTemplate(r"template.docx")
context = ({"issue_date" : "16-Jan 2021", "na_us_guid_new": "1. 13-Jan-2021: abc"})
tpl.render(context)
tpl.save(r"testing.docx")我需要大胆地强调这一点:13-2021年1月-2021年。但我没有找到任何资源。我该怎么做?
发布于 2022-04-07 16:30:08
将模板文档中的{{issue_date}}表达式粗体加下划线:

https://stackoverflow.com/questions/67831922
复制相似问题