# 模板渲染 jinja_env = jinja2.Environment() tpl.render(context, jinja_env, autoescape=True) tpl.save(config().get("docx_dir_path") + '\\' + config().get("guide_sheet_res"))