x<y calls x.__lt__(y)
x<=y calls x.__le__(y)
x==y calls x.__eq__(y)
x!=y calls x.__ne__(y)
x>y calls x.__gt__(y)
x>=y calls x.__ge__(y)
lt는 less than <
le는 less or equal <=
eq는 equal ==
ne는 not equal !=
gt는 great than >
ge는 great or equal >=
댓글