Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import flask
- app = flask.Flask("KEKUS_MAXIMUS")
- @app.route("/")
- def index():
- if "num" in flask.session:
- flask.session["num"] += 1
- else:
- flask.session["num"] = 1
- return "Privet! " + str(flask.session["num"])
- app.secret_key = "Ya lublu poezda"
- app.run(host="0.0.0.0", port=9000)
- print("kek")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement