发布时间:2019-09-22 07:41:01编辑:auto阅读(2557)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
54422
41186
35707
31270
26172
25890
24382
19923
15966
15411
2281°
2088°
2177°
2300°
2262°
2474°
2408°
2226°
2306°
2280°