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