发布时间:2019-09-22 07:41:01编辑:auto阅读(1991)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
50984
50369
40982
37851
32314
29204
28090
22919
22887
21216
1081°
1761°
1444°
1378°
1650°
1464°
2120°
3677°
3611°
2538°