📌  相关文章
📜  去除第一次出现的子字符串 python 代码示例

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

代码示例1
>>>mystring = "Description: Mary had a little lamb Description: "
>>>print mystring.replace("Description: ","",1)

"Mary had a little lamb Description: "