发布时间:2019-09-22 07:41:01编辑:auto阅读(1899)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
49789
49019
39706
36753
31146
27978
26944
21751
21662
20013
108°
742°
1323°
1263°
1122°
2260°
1348°
1954°
2207°
1715°