auto_size属性

auto_size属性

指示评论的大小是否根据其内容自动调整。

例子


if notcomment1.auto_size:
    # The size of the comment varies with the content
    comment1.auto_size = True

定义:

@property
def auto_size(self):
    ...
@auto_size.setter
def auto_size(self, value):
    ...

也可以看看