scipy.sparse.lil_matrix. todia# lil_matrix.todia(copy=False)[源代码]# 将此数组/矩阵转换为稀疏 DIAgonal 格式。 当 copy=False 时,此数组/矩阵与结果 dia_array/矩阵之间可能会共享数据/索引。