发布时间:2019-09-22 07:41:01编辑:auto阅读(1962)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
50401
49693
40300
37341
31745
28603
27538
22323
22318
20626
376°
985°
772°
728°
974°
850°
1467°
2752°
2483°
1908°