📜  python 从列表中删除特殊字符 - Python 代码示例

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

代码示例3
import re
my_list= ["on@3", "two#", "thre%e"]
print [re.sub('[^a-zA-Z0-9]+', '', _) for _ in my_list]