Coggle requires JavaScript to display documents.
def __hash__(self): hash(self.x) ^ hash(self.y)
def __hash__(self): hashes = (hash(x) for x in self._coments) return functools.reduce(operator.xor, hashes, 0)
def __hash__(self): hashes = map(hash, self._components) return functools.reduce(operator.xor, hashes, 0)
def __getitem__(self, index): cls = type(self) if isinstance(index,slice): return cls(self._component[index]) elif isinstance(index, numeric.Integral): return self._component[indx] else: raise TypeError("error")
浮点数的格式代码 'eEfFgGn%' 整数使用的格式代码有 'bcdoxXn'
__getattr__() __setattr__()
def __eq__(self, other): if len(self) != len(other): return False for a, b in zip(self, other): if a != b: return False return True