看了看文档
http://flask.pocoo.org/docs/design/#the-explicit-application-object
Whenever you create a Flask instance you usually pass it __name__ as package name. Flask depends on that information to properly load resources relative to your module.
http://flask.pocoo.org/docs/api/#application-object
The name of the package is used to resolve resources from inside the package or the folder the module is contained in depending on if the package parameter resolves to an actual python package (a folder with an __init__.py file inside) or a standard module (just a .py file).
但没理解啥意思
http://flask.pocoo.org/docs/design/#the-explicit-application-object
Whenever you create a Flask instance you usually pass it __name__ as package name. Flask depends on that information to properly load resources relative to your module.
http://flask.pocoo.org/docs/api/#application-object
The name of the package is used to resolve resources from inside the package or the folder the module is contained in depending on if the package parameter resolves to an actual python package (a folder with an __init__.py file inside) or a standard module (just a .py file).
但没理解啥意思