The requested URL was not found on the server. If you entered the URL manually please check your spe
我的代码如下:
# css或js文件同放置于static为文件夹下
from flask import Flask,render_template
app = Flask(__name__)
app.route("/")
def index():
return render_template("static.html")
if __name__ == '__main__':
app.run(debug=True)
运行结果:
解决方案:
发现app.route()前面少写一个@:
原创
2021-03-08 21:08:12 ·
4027 阅读 ·
0 评论