replace method

replace

Replace the text.

def replace(self, old_value, new_value):
    ...
ParameterTypeDescription
old_valuestrThe old text.
new_valuestrThe new text.

replace

Replace the text.

def replace(self, index, count, text):
    ...
ParameterTypeDescription
indexintThe start index.
countintThe count of characters.
textstrThe text.

See Also