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