scipy.sparse.dok_matrix.

clear#

dok_matrix.clear() None.  D 中删除所有项目。[源代码]#