发布时间:2019-09-22 07:41:01编辑:auto阅读(2021)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
51282
50731
41331
38143
32608
29510
28363
23231
23197
21524
1595°
2324°
1927°
1867°
2197°
1910°
2599°
4363°
4211°
2990°