这是一段简单的Flask代码 from flask import Flask app = Flask(__name__) @app.route("/") def index(): return "Hello World" app.run(debug=True) 我们开启了调试模式,与此同时控制台输出 > python test.py * Serving Flask app 'test' * Debug mode: on WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server …
月度归档: 2023 年 7 月
1 篇文章