From 7dca4a1448c9a44a9ed2f7e4d5d9f66a7559da39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E6=A3=AE?= Date: Tue, 7 Dec 2021 17:02:56 +0800 Subject: [PATCH] 1.init --- .gitignore | 4 ++++ app.py | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .gitignore create mode 100644 app.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..10e0b05 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.idea +/venv/ +*/__pycache__/ +*.cpython-38.pyc diff --git a/app.py b/app.py new file mode 100644 index 0000000..4b059ec --- /dev/null +++ b/app.py @@ -0,0 +1,12 @@ +from flask import Flask + +app = Flask(__name__) + + +@app.route('/') +def hello_world(): + return 'Hello World!' + + +if __name__ == '__main__': + app.run()