scipy.sparse.dia_matrix. todok# dia_matrix.todok(copy=False)[source]# 将此数组/矩阵转换为键字典格式。 当 copy=False 时,此数组/矩阵和生成的 dok_array/matrix 之间可能会共享数据/索引。