本人小白手残晚期没事干直接把py的文件名改了,导致FLASK_APP无法定位到你改名后的文件这种说法可能有点抽象了
然后就出现了报错
Could not locate a Flask application. Use the ‘flask --app’ option, ‘FLASK_APP’ environment variable, or a ‘wsgi.py’ or ‘app.py’ file in the current directory.
CD /D D:\python\web
Set FLASK_APP = NUCM.py
flask run