You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
552 B
26 lines
552 B
# -*- encoding: utf-8 -*-
|
|
'''
|
|
@File : app.py
|
|
@License : (C)Copyright 2018-2022
|
|
|
|
@Modify Time @Author @Version @Desciption
|
|
------------ ------- -------- -----------
|
|
2023/4/13 14:26 zart20 1.0 None
|
|
'''
|
|
|
|
from flask import Flask, render_template
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route("/")
|
|
def hello():
|
|
return "<h1>hello</h1>"
|
|
|
|
@app.route('/hello/<name>')
|
|
def hello_2(name):
|
|
return render_template('hello.html', name=name)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app.run(host="127.0.0.1", port=8080, debug=True) |