这是代码跟问题
flask.Flask应该是flask.flask,第二首字母小写
你用的是pycharm吗,pycharm有智能提示
https://www.zhihu.com/question/349945014