发布时间:2019-09-22 07:41:01编辑:auto阅读(2405)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
53073
39990
34372
30123
25018
24824
23200
16666
14834
14332
655°
616°
674°
692°
741°
868°
834°
854°
952°
875°