发布时间:2019-09-22 07:41:01编辑:auto阅读(2644)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
54997
41794
36383
31792
26699
26386
24911
20515
16457
15877
3024°
2749°
2837°
2989°
2925°
3189°
3078°
2925°
2912°
2896°