wordpress封采集站ip,做外贸要自己建网站吗,十大黄金软件app,网站微信二维码侧边栏漂浮框在python3中#xff0c;使用torndb进行查询时#xff0c;遇到问题 AttributeError: module itertools has no attribute izip#xff0c;解决该问题过程中耗费了不少时间#xff0c;故把解决办法写下以便以后遇到该问题的人能更快速的解决#xff1a; 因为python3中filter… 在python3中使用torndb进行查询时遇到问题 AttributeError: module itertools has no attribute izip解决该问题过程中耗费了不少时间故把解决办法写下以便以后遇到该问题的人能更快速的解决 因为python3中filter,map,zip本身就已经是generator了所以torndb中的138行用到itertools.izip就显得有点多余了所以需要改一下该代码把return [Row(itertools.izip(column_names, row)) for row in cursor] 改为 return[Row(zip(column_names, row))for row in cursor]再运行程序问题得到解决 转载于:https://www.cnblogs.com/simplezhuo/p/9811369.html