replace方法

replace(old_string, new_string)

用新字符串替换所有单元格的文本。

def replace(self, old_string, new_string):
    ...
范围 类型 描述
old_string str 旧字符串值。
new_string str 新的字符串值。

也可以看看