发布时间:2019-09-22 07:41:01编辑:auto阅读(2412)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
53134
40054
34426
30175
25078
24880
23265
16749
14881
14382
733°
681°
734°
758°
804°
932°
905°
918°
1015°
936°