草庐IT

LouieCubero

全部标签

python - TemplateSyntaxError : expected token ':' , 得到 '}'

这是我的源代码:{%forfileinfinance%}{{file.filename}}Description:{{file.description}}Dateposted:{{moment(file.date).fromNow()}}DeleteFile{%endfor%}一开始,我的代码运行正常,突然出现如下错误:TemplateSyntaxError:预期的标记':',得到'}'这是我的回溯(如果你需要的话):Traceback(mostrecentcalllast):File"C:\Users\LouieCubero\Documents\GitHub\flasky\venv\