发布时间:2019-09-22 07:41:01编辑:auto阅读(2461)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
53612
40447
34863
30592
25469
25250
23685
19095
15254
14768
1260°
1170°
1236°
1269°
1288°
1461°
1413°
1373°
1479°
1428°