scipy.sparse.dok_array.

pop#

dok_array.pop(k[, d]) v, 移除 指定的 鍵並傳回 對應的值。[source]#

如果找不到鍵,則在給定的情況下傳回預設值;否則,引發 KeyError。