发布时间:2019-09-22 07:41:01编辑:auto阅读(2514)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
54095
40852
35361
31018
25909
25647
24085
19618
15689
15172
1911°
1751°
1843°
1925°
1921°
2099°
2051°
1872°
1958°
1940°