发布时间:2019-09-22 07:41:01编辑:auto阅读(2149)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
51931
51707
42022
38862
33350
30318
28960
23972
23889
22252
387°
2592°
3263°
2719°
2706°
3441°
2663°
3502°
5772°
5549°