例如,以下的代码是错误的: class Student(object): # 方法名称和实例变量均为birth: @property def birth(self): return self.birth 这是因为调用s.birth时,首先转换为方法调用,在执行return self.birth时,又视为访问self的属性, 于是又转换为方法调用,造成无限递归,最终导致栈溢出报错RecursionError。