发布时间:2019-09-22 07:41:01编辑:auto阅读(2066)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
51617
51222
41706
38469
32953
29951
28639
23611
23542
21892
2063°
2767°
2309°
2245°
2737°
2266°
3030°
4971°
4833°
3442°