python3 面向对象 最近看一份python的代码,发现里面有@property 一脸懵逼,我果然很菜,然后学习了一下关于python里的访问器和修改器。 class Person(object): def __init__(self, name, age): self._name = name self._age = age # 访问器 - getter方法