发布时间:2019-09-22 07:41:01编辑:auto阅读(2417)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
53158
40079
34451
30198
25103
24898
23291
16787
14904
14409
766°
702°
769°
780°
825°
958°
931°
950°
1048°
958°