用若干变量来渲染它,调用render() 方法: print template.render(the='variables', go='here'). 使用一个模板加载器,而不是向Template 或Environment.from_string() ...
確定! 回上一頁