发布时间:2019-09-22 07:41:01编辑:auto阅读(2170)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
51970
51773
42055
38897
33393
30358
28997
24019
23928
22289
36°
488°
2659°
3359°
2774°
2764°
3546°
2724°
3552°
5858°