def __ne__(self, other):
if isinstance(other, BaseMultiset):
return self._total != other._total or self._elements != other._elements
if isinstance(other, (set, frozenset)):
pass
elif not isinstance(other, Set):
return NotImplemented
if self._total != len(other):
return True
return not self._issubset(other, False)
评论列表
文章目录