在使用这种方法后,实例的属性限制要在名字前添加`_`。
# 限制实例属性测试 __slots__ = ('_width', '_height', '_resolution')
Sign in to make a reply
_王若水
在使用这种方法后,实例的属性限制要在名字前添加`_`。