摘要:
废话不多说直接祭上python3.3x的文档:(原文链接)object.__hash__(self)Called by built-in function hash() and for operations on members of hashed collections including s... 阅读全文
摘要:
乱写__eq__会发生啥?请看代码..>>> class A:... def __eq__(self, other): # 不论发生什么,只要有==做比较,就返回True... return True... >>> a = A()>>> b = A()>>> a =... 阅读全文