Python flask:TypeError:'int'对象不可迭代

问题描述 投票:0回答:1

烧瓶:

zips = zip(sno,title,link ,publish)
return render_template('front.html', key = ind, zips = zips)

我正在尝试使用HTML在表中打印数据框的压缩列。它引发错误TypeError:'int'对象不可迭代

python html flask
1个回答
0
投票

zip仅接受可迭代的参数,我相信您为zip提供的四个参数中的某些不是可迭代的

© www.soinside.com 2019 - 2024. All rights reserved.