发布时间:2019-09-22 07:41:01编辑:auto阅读(2288)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
52500
52424
42515
39426
33856
30822
29590
24498
24357
22723
58°
75°
116°
293°
286°
292°
343°
286°
420°
406°