摘要:
object的方法 比较的特殊方法: 特殊方法 使用 描述 __lt__(self.other) x<y 如果x<y,则返回true __le__(self.other) x<=y 如果x<=y,返回true __eq__(self.other) x==y 如果x==y,返回true __ne__( 阅读全文
摘要:
object的方法 比较的特殊方法: 特殊方法 使用 描述 __lt__(self.other) x<y 如果x<y,则返回true __le__(self.other) x<=y 如果x<=y,返回true __eq__(self.other) x==y 如果x==y,返回true __ne__( 阅读全文
|