要一直走下去

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2018年7月18日

摘要: 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__( 阅读全文
posted @ 2018-07-18 00:22 要一直走下去 阅读(136) 评论(0) 推荐(0) 编辑