是否可以在Python中覆盖+ =?
是的,重写该__iadd__方法。例:
__iadd__
def __iadd__(self, other): self.number += other.number return self