# 导入Flask类 from flask import Flask # Flask函数接收一个参数name app = Flask(__name__) # 装饰器的作用是将路由映射到视图函数index # @app.route('/') def index():