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