Python entfernen Sie die Zeichenfolge aus der Zeichenfolge
s = 'ab12abc34ba'
print(s.replace('ab', ''))
Mysterious Mole
s = 'ab12abc34ba'
print(s.replace('ab', ''))
"Str*ing With Chars I! don't want".replace('!','').replace('*','')
url = 'abcdc.com'
print(url.replace('.com',''))
Food = ["Apple", "lemon", "Mango"]
Food.append("Cake")
Food.remove("lemon")
for x in Food:
print(x)
shop = ["Python", "js" , "c#"]
shop.remove("js")
for x in shop:
print(x)