from employee_class import Employee employee1 = Employee('Siddu', '1008887', '150000') employee2 = Employee('Santu', '1008888', '160000') '''print('details of a employee1') print('Name=',employee1.name) print('Empid=',employee1.empid) print('Salary=',employee1.salary) print('details of a employee2') print('Name=',employee2.name) print('Empid=',employee2.empid) print('salary=',employee2.salary)''' employee1.display() employee1.get_info_from_user() employee1.display() employee2.display()
def setUp(self): #setUp()方法创建一个实例供后面测试使用,可以避免反复创造的麻烦 self.fault = Employee('zhang', 'san', 3000)
def setUp(self): self.my_employee = Employee('Maria', 'Maximovich', 10000)
def setUp(self): self.employee1 = Employee('qiu', 'bin', 10000) self.salarys = 7000