##  set_style(self, style) {#aspose.cells.Style}
设置范围的样式。



```python

def set_style(self, style):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| style | [`Style`](/cells/python-net/zh/aspose.cells/style) |样式对象。|


##  set_style(self, style, explicit_flag) {#aspose.cells.Style-bool}
应用单元格样式。



```python

def set_style(self, style, explicit_flag):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| style | [`Style`](/cells/python-net/zh/aspose.cells/style) |单元格样式。|
| explicit_flag | bool |确实，仅覆盖明确设置的格式。|



### 也可以看看
* 模块[`aspose.cells`](../../)
* 类 [`Range`](/cells/python-net/zh/aspose.cells/range)
