class House:
def eq(self, other):
pass
def lt(self, other):
pass
# Methods created by @total_ordering
le = lambda self, other: self < other or self == other
gt = lambda self, other: not (self < other or self == other)
ge = lambda self, other: not (self < other)
ne = lambda self, other: not self == other
网友评论