scipy.sparse.csr_matrix. asformat# csr_matrix.asformat(format, copy=False)[原始碼]# 以傳入的格式傳回此陣列/矩陣。 參數: format{str, None}期望的稀疏格式(“csr”、“csc”、“lil”、“dok”、“array”,…)或 None 表示不轉換。 copybool,選用若為 True,則保證結果不會與 self 共用資料。 回傳值: A此陣列/矩陣以傳入的格式呈現。