// fisher.py
from app import create_app
app = create_app()
app.run(debug=app.config['DEBUG'])
判断条件中越可能为false放前面,比较耗时的操作放后面,比如操作数据库
常用返回response的方式:return 301, xxx, headers
@staticmethod,静态方法,与对象self无关函数
@classmethod,类方法,与类变量cls有关
request.args是一个不可变的字典,request.args.to_dict()转化成可变的字典,要在上下文使用
蓝图用来分离模块
原文:https://www.cnblogs.com/Jomsou/p/12089190.html