module 'itertools' has no attribute 'izip'

 return itertools.izip(coo_matrix.row, coo_matrix.col, coo_matrix.data)

改为

return zip(coo_matrix.row, coo_matrix.col, coo_matrix.data)   
posted @ 2022-08-19 22:53  luoganttcc  阅读(0)  评论(0)    收藏  举报