scipy.sparse.lil_array. asformat# lil_array.asformat(format, copy=False)[source]# 以传入的格式返回此数组/矩阵。 参数: format{str, None}所需的稀疏格式(“csr”,“csc”,“lil”,“dok”,“array”,...)或无表示不转换。 copybool, optional如果为 True,则保证结果不与 self 共享数据。 返回值: A以此数组/矩阵的传入格式。