发布时间:2019-09-22 07:41:01编辑:auto阅读(2381)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
52871
39843
34232
29983
24878
24694
23072
16469
14711
14213
501°
475°
539°
542°
592°
723°
681°
710°
791°
719°