看了官网上的是这样的
from flask import make_response
@app.route( '/' )
def index():
resp = make_response( render_template(...) ) #不明白这一行的 ... 是什么意思
resp.set_cookie('username', 'the username')
return resp
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
问题已经解决了