📅  最后修改于: 2022-03-11 14:46:03.078000             🧑  作者: Mango
from jinja2 import Environment, BaseLoader
rtemplate = Environment(loader=BaseLoader()).from_string(myString)
data = rtemplate.render(**data)