37,718
社区成员
发帖
与我相关
我的任务
分享
>>> help(s.replace)
Help on built-in function replace:
replace(...)
S.replace(old, new[, count]) -> string
Return a copy of string S with all occurrences of substring
old replaced by new. If the optional argument count is
given, only the first count occurrences are replaced.
这是replace的说明,看了你就知道了