width_cm属性
width_cm属性
表示形状的宽度,以厘米为单位。
例子
if shape.width_cm == 3:
shape.width_cm = 1.0
定义:
@property
def width_cm(self):
...
@width_cm.setter
def width_cm(self, value):
...
表示形状的宽度,以厘米为单位。
if shape.width_cm == 3:
shape.width_cm = 1.0
@property
def width_cm(self):
...
@width_cm.setter
def width_cm(self, value):
...