📅  最后修改于: 2022-03-11 14:45:03.204000             🧑  作者: Mango
# Python program to remove a character from a string using translate() method
text= '_User_'
print(text.translate({ord('_'):None}))