发布时间:2019-09-22 07:41:01编辑:auto阅读(1871)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
49379
48573
39270
36356
30766
27578
26572
21392
21254
19599
244°
478°
473°
561°
913°
635°
1312°
1511°
1232°
1222°