scipy.sparse.dok_array.

scipy.sparse.dok_array.nnz#

property dok_array.nnz#

存储值的数量,包括显式零值。

另请参见

count_nonzero

非零条目的数量