-
廖雪峰python #@property使用
概述请利用@property给一个Screen对象加上width和height属性,以及一个只读属性resolution:classScreen(object):@propertydefwidth(self):returnself._wid
概述请利用@property给一个Screen对象加上width和height属性,以及一个只读属性resolution:classScreen(object):@propertydefwidth(self):returnself._wid