scipy.sparse.lil_array. tocsr# lil_array.tocsr(copy=False)[源代码]# 将此数组/矩阵转换为压缩稀疏行格式。 当 copy=False 时,数据/索引可能在此数组/矩阵和生成的 csr_array/矩阵之间共享。