摘要: __eq__(self, other):用于 == 操作符__ne__(self, other):用于 != 操作符__lt__(self, other):用于 < 操作符__le__(self, other):用于 <= 操作符__gt__(self, other):用于 > 操作符__ge__( 阅读全文
posted @ 2024-09-18 14:47 天子骄龙 阅读(26) 评论(0) 推荐(0)
摘要: __add__(self, other): 用于 + 操作符__sub__(self, other): 用于 - 操作符__mul__(self, other): 用于 * 操作符__truediv__(self, other): 用于 / 操作符__floordiv__(self, other): 阅读全文
posted @ 2024-09-18 14:41 天子骄龙 阅读(29) 评论(0) 推荐(0)