Python3 string replace:修订历史

本页内容

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

2022年8月17日 (星期三)

  • 当前之前 21:042022年8月17日 (三) 21:04Neo 讨论 贡献 1,440字节 +1,440 创建页面,内容为“{{DISPLAYTITLE:replace(old, new [, max])}}26 = Python3 replace()方法 = Python3 字符串 == 描述 == replace() 方法把字符串中的 old(旧字符串) 替换成 new(新字符串),如果指定第三个参数max,则替换不超过 max 次。 == 语法 == replace()方法语法: <sample title="" desc="" lang="python" hererun="1"> str.replace(old, new[, max]) </sample> == 参数 == * old -- 将…”