功能:替换字符串。
示例代码:
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 功能:替换字符串。
示例代码:
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