📜  从字符串中删除子字符串 python 代码示例

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

代码示例6
s = "Earthworms and Python are disgusting!"
s.replace('and Python ', '')
print(s)
#Run the code
result = "Earthworms are disgusting!"