scipy.sparse.dok_array.

scipy.sparse.dok_array.nnz#

property dok_array.nnz#

儲存值的數量,包含顯式零值。

另請參閱

count_nonzero

非零條目的數量