0
How does python replace string exactly works?
2 Respostas
+ 2
From the link posted by @Gideon:
string.replace(s, old, new[, maxreplace])
> s: The string to search and replace from.
> old: The old sub-string you wish to replace.
> new: The new sub-string you wish to put in-place of the old one.
> maxreplace: The maximum number of times you wish to replace the sub-string.