📌  相关文章
📜  Python 从字符串中删除标点符号 - Python 代码示例

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

代码示例1
# 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)))