Пример простого приложения на Flask


--- app.py
  • app.py
#!/usr/bin/env python3

from flask import Flask
app = Flask(__name__)


@app.route("/")
def hello():
    return "Hello World!"


if __name__ == "__main__":
    app.run()
© RemiZOffAlex