主题
Value (属性)
返回一个 str 值,它代表指定样式的名称。
示例
python
#本示例为A1单元格添加文本,并显示A1单元格样式的名称
def test():
Range("A1").Value2 = "示例文本"
print(Range("A1").Style.Value)
python
#本示例显示B1单元格样式的名称是否为“Percent”
def test():
print(Range("B1").Style.Value == "Percent")