发布时间:2019-09-22 07:41:01编辑:auto阅读(2440)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
53482
40309
34721
30468
25346
25140
23555
18772
15130
14645
1106°
1029°
1096°
1107°
1141°
1296°
1263°
1239°
1336°
1277°