module 'itertools' has no attribute 'izip'

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/luoganttcc/article/details/89642467

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

改为

return zip(coo_matrix.row, coo_matrix.col, coo_matrix.data)   

猜你喜欢

转载自blog.csdn.net/luoganttcc/article/details/89642467