定义一个 Employee 雇员类,要求如下:(1) 属性有:id、name、salary(2) 运算符重载+:实现两个对象相加时,默认返回他们的薪水和
class Employee: __init_flag=True def __init__(self,id,name,salary): self.id=id self.name=name self.salary=salary def __add__(self, other): if isinstance(other,Employee): return self.salary + othe...