发布时间:2019-09-22 07:41:01编辑:auto阅读(2023)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
51287
50738
41336
38147
32616
29516
28366
23237
23203
21528
1602°
2336°
1936°
1876°
2204°
1921°
2604°
4373°
4223°
2996°