##  set_custom(self, custom, builtin_preference) {#str-bool}
设置单元格的自定义数字格式字符串。



```python

def set_custom(self, custom, builtin_preference):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| custom | str |自定义数字格式字符串，应为InvariantCulture模式。|
| builtin_preference | bool |如果给定的自定义数字格式字符串与内置数字格式之一匹配<br/>对应当前区域设置，是否将数字格式设置为内置格式而不是自定义格式。|



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