摘要: 1.下载模块 pip install docxtpl 2.最简单使用 from docxtpl import DocxTemplate #1.加载模板 doc = DocxTemplate("模板路径") #2.要注入替换得内容 context = { 'company_name' : "World 阅读全文
posted @ 2021-04-20 22:02 心慌得初夏 阅读(552) 评论(0) 推荐(0) 编辑
levels of contents