发布时间:2019-09-22 07:41:01编辑:auto阅读(2087)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
51676
51335
41769
38548
33022
30040
28710
23693
23614
21978
2169°
2867°
2391°
2333°
2875°
2343°
3132°
5142°
4975°
3551°