发布时间:2019-09-22 07:41:01编辑:auto阅读(2330)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
52683
52598
42735
39609
33996
30960
29756
24646
24488
22866
215°
224°
292°
277°
311°
466°
445°
460°
534°
456°