to_int方法

to_int(self)

以整数形式返回属性值。


def to_int(self):
    ...

注意事项

如果属性类型不是 PropertyType.Number,则会引发异常。

也可以看看