发布时间:2019-09-22 07:41:01编辑:auto阅读(2469)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
53696
40529
34950
30669
25545
25314
23762
19224
15342
14841
1379°
1272°
1370°
1397°
1421°
1597°
1548°
1465°
1559°
1511°