发布时间:2019-09-22 07:41:01编辑:auto阅读(1808)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
48712
47733
38518
35716
30154
26895
25913
20765
20524
18923
312°
380°
419°
428°
415°
424°
468°
533°
657°
661°