发布时间:2019-09-22 07:41:01编辑:auto阅读(2005)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
51141
50544
41160
37998
32461
29364
28232
23080
23048
21370
1416°
2114°
1756°
1679°
1980°
1758°
2433°
4100°
3969°
2835°