python3 property property 把一个方法变成静态属性 @property def eat(self) print('%s has eated'%self.name) 调用: d.eat # 不用加括号