发布时间:2019-09-22 07:41:01编辑:auto阅读(2100)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
51720
51380
41812
38584
33065
30074
28745
23740
23649
22019
2242°
2925°
2445°
2388°
2971°
2392°
3200°
5257°
5071°
3626°