scipy.sparse.dia_matrix. scipy.sparse.dia_matrix.nnz# property dia_matrix.nnz# 儲存值的數量,包含顯式零值。 參見 count_nonzero非零條目的數量