以下面例子作为面向对象基础介绍,类比java里的面向对象既可以,大同小异 class Employee(): raiseAmount=1.04 employeeNum= def __init__(self,first,surname,salary):#相当于java里面的结构体,self可以理解为this self.first = first #属性 self.surname = surname self.salary = salary self.email = first + '.' + su…