@app.errorhandler(404)
def not_found(error):
app.logger.error(error)
return 'this page not find', 404
...
yekong
3年前 (2021-08-21) 1132℃
0喜欢
使用debug需要先开启debug
from flask import Flask
from api import route_api
app = Flask(__name__)
app.register_blueprint(route_api, url_prefix=&quo...
yekong
3年前 (2021-08-21) 1117℃
0喜欢
app.run(debug=True)
from flask import Flask
from api import route_api
app = Flask(__name__)
app.register_blueprint(route_api, url_prefix=...
yekong
3年前 (2021-08-21) 1002℃
0喜欢