必须在构造函数里传参,不能用app["] = XXX 的方式! 坑死了
#must set in construct fn cant set by app.config['static_folder'] = config.PATH_STATIC app = Flask(__name__, static_url_path = '', static_folder=config.PATH_STATIC) # app = Flask(__name__) # app.config['static_folder'] = config.PATH_STATIC