阅读背景:

python中replace()函数的用法_爱学习的人工智障的博客_python replace函数怎么用

来源:互联网 

功能:替换字符串。
示例代码:

str = "this is string example....wow!!! this is really string";
print str.replace("is", "was");
print str.replace("is", "was", 3);
str = "this is string 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: