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