📅  最后修改于: 2022-03-11 14:45:13.639000             🧑  作者: Mango
# Python program to remove punctuation from a string
import string
text= 'Hello, W_orl$d#!'
# Using translate method
print(text.translate(str.maketrans('', '', string.punctuation)))