更新(1)
flask run 可以正常启动, 但是flask shell输入后提示Usage: flask shell [OPTIONS]
Error: Could not locate a Flask application. You did not provide the “FLASK_APP” environment variable, and a “wsgi.py” or “app.py” module was not found in the current directory.
当前工作目录为 helloflask/demos/hello
helloflask目录下 有创建 .env ,.flaskenv文件。.flaskenv文件中写有FLASK_ENV=development.