运行 ❯
获取你自己的
Python
服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
txt = "one one was a race horse, two two was one too." x = txt.replace("one", "three", 2) print(x)
三三是匹赛马,二二是多余的一个。