This commit is contained in:
李渊博
2023-04-11 12:05:10 +08:00
commit 558a8febef
6 changed files with 453 additions and 0 deletions

14
web/app.py Normal file
View File

@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
from flask import Flask
from flask import render_template
app = Flask(__name__)
@app.route('/')
@app.route('/<name>')
def hello(name=None):
return render_template('index.html', name=name)
if __name__ == '__main__':
app.run(host='0.0.0.0')