我有一个固定的模板要写,相当长
REQUEST DETAILS
RITM :: RITM1234
STASK :: TASK1234
EMAIL :: abc@abc.com
USER :: JOHN JOY
CONTENT DETAILS
TASK STATE :: OPEN
RAISED ON :: 12-JAN-2021
CHANGES :: REMOVE LOG
像这样的,大概有100行
我们有没有办法将其存储为模板,或者将其存储在“.toml”或类似文件中,并在python中写入值(右::)
Tags:
对于模板创建,我使用jinja:
使用名为
file.extension.TEMPLATE
的文件:您可能需要对其进行一点修改,但主要的事情是存在的
使用
$
将所有输入作为占位符,并将其另存为txt文件样本
相关问题 更多 >
编程相关推荐