发布时间:2019-09-22 07:41:01编辑:auto阅读(2259)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
52299
52209
42356
39241
33721
30677
29399
24343
24222
22588
37°
36°
76°
75°
202°
190°
201°
207°
243°
427°