##  replace(self, old_string, new_string) {#str-str}
用新字符串替换所有单元格的文本。



```python

def replace(self, old_string, new_string):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| old_string | str |旧字符串值。|
| new_string | str |新的字符串值。|



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