发布时间:2019-09-22 07:41:01编辑:auto阅读(2668)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
55227
42022
36602
32011
26925
26578
25112
20782
16641
16058
3315°
2999°
3075°
3232°
3171°
3452°
3333°
3172°
3173°
3145°