DEBUG=True
from flask import Flask app = Flask(__name__) app.config.from_object("config") @app.route("/hello") def hello(): return "hello world" if __name__=="__main__": app.run(host="0.0.0.0",debug=app.config[‘DEBUG‘])
原文:https://www.cnblogs.com/sea-stream/p/14176279.html