1. endpoint from flask import Flask, url_for # 实例化一个Flask对象 app = Flask(__name__) # 打印默认配置信息 # 引入开发环境的配置 app.config.from_object('settings.DEV') # 引入生产环境的配置 # app.config.from_object('settings.Pro') @app.route('/index', methods=['GET', 'POST'], endpoin…