scipy.sparse.dok_matrix.popitem

dok_matrix.popitem(/)

删除(键、值)对并将其作为2元组返回。

对按后进先出(LIFO)顺序返回。如果判定为空,则引发KeyError。