from scipy.sparse import coo_matrix row = [2,2,3,2] col = [3,4,2,3] c = coo_matrix((data,(row,col)),shape=(5,6)) 来源:CSDN作者:u_7890链接:https://blog.csdn.net/u_7890/article/details/82813921 标签 稀疏矩阵