您可以将多个参数传递给视图。
您可以传递所有本地变量
@app.route('/')def index(): content = """ teste """ user = "Hero" return render_template('index.html', **locals())或只是传递您的数据
def index() : return render_template('index.html', obj = "object", data = "a223jsd" );API文档



