这里是.py代码
from re import template
from flask import Flask,render_template
app =Flask(__name__,template_folder=template)
@app.template_filter('cut')
def cut(value):
value =value.replace('我是九,你是三,除了你,还是我','你不用好,我喜欢就好')
return value
@app.route('/')
def index():
info ='我是九,你是三,除了你,还是我'
return render_template("index26.html",info=info)
if __name__=="__main__":
app.run(debug=True)
这里是HTML代码
from re import template
from flask import Flask,render_template
app =Flask(__name__,template_folder=template)
@app.template_filter('cut')
def cut(value):
value =value.replace('我是九,你是三,除了你,还是我','你不用好,我喜欢就好')
return value
@app.route('/')
def index():
info ='我是九,你是三,除了你,还是我'
return render_template("index26.html",info=info)
if __name__=="__main__":
app.run(debug=True)

老师,我写的与视频中的一样,为什么会报错呢?