#py文件 from flask import Flask, render_template, flash, request app = Flask(__name__) app.secret_key = '123' @app.route('/') def hello_login(): flash('hello jikexueyuan') return render_template('index.html') @app.route('/login', methods=['POST']) def login(): form = request.form username = form.get('username') password = form.get('password') if not username: flash('please input username') ret
python flask 引用html的模板出现的错误新人求解答
最新推荐文章于 2024-04-16 17:52:07 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)