How to delete all instances of a character in a string in python?

前端 未结 6 1899
清酒与你
清酒与你 2020-12-08 00:04

How do I delete all the instances of a character in this string? Here is my code:

def findreplace(char, string):
    place = string.index(char)
    string[pl         


        
6条回答
提交回复
热议问题