📜  python 仅替换第一个实例 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:17.139000             🧑  作者: Mango

代码示例2
text.replace("text", "new", count)
# count is the number of instances you want to replace