刚刚研究了以下,应该是flask 更新到1.0以后 不支持使用debug =True 来开启调试模式了。 Prior to Flask 1.0 the FLASK_ENV environment variable was not supported and you needed to enable debug mode by exporting FLASK_DEBUG=1. This can still be used to control debug mode, but you should prefer setting the development environment as shown above. 具体怎么使用,还在研究中,如果楼主解决了,可以分享一下!