标签: python
创建了两个不同类的实例。我可以通过哪种方式添加它们
class Dollar(): def __init__(self, value): self.value = value class Euro(): def __init__(self, value): self.value = value d = Dollar(80) s = Euro(50) print(d + s)