width属性

width属性

以字符为单位获取并设置列 width。

注意事项

对于电子表格,第 width 列以字符数来衡量 以普通样式的字体呈现的数字 0~9 中的最大数字 width。

定义:

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

也可以看看