发布时间:2019-09-22 07:41:01编辑:auto阅读(2639)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
54956
41751
36339
31770
26671
26363
24886
20492
16435
15853
2982°
2708°
2808°
2954°
2890°
3152°
3043°
2888°
2879°
2858°