Python/flask/test/main.py
from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
return "Hello, Flask!"
import os
if __name__ == '__main__':
debug_mode = os.getenv('FLASK_ENV') == 'development'
app.run(debug=debug_mode)