scipy.sparse.dok_array. asformat# dok_array.asformat(format, copy=False)[source]# 以傳入的格式返回此陣列/矩陣。 參數: format{str, None}期望的稀疏格式 (“csr”, “csc”, “lil”, “dok”, “array”, …);若為 None 則不轉換。 copybool, optional若為 True,保證結果不與自身共用資料。 返回: A以此傳入格式表示的陣列/矩陣。