@property def x(self): """I'm the 'x' property.""" return self._x @x.setter def x(self, value): self._x = value property以属性的形式去访问方法,要带参数为什么不直接用普通方法呢?
property以属性的形式去访问方法,要带参数为什么不直接用普通方法呢?