原因: reder_template查找目录是在当前目录中查找文件夹templates,index.html文件应放在文件夹templates中。 解决方法: 把templates文件夹里的app.py放到文件夹外。