发布时间:2019-09-22 07:41:01编辑:auto阅读(2105)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
51748
51432
41842
38613
33109
30099
28772
23769
23681
22048
81°
2278°
2971°
2476°
2418°
3023°
2430°
3234°
5333°
5152°