# -*- 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 "

hello

" @app.route('/hello/') 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)