如果你想做不同的事情,无论表单是否被提交,请检查 method 是什么。 from flask import request @app.route('/', methods=['GET', 'POST']) def ...
確定! 回上一頁