发布时间:2019-09-22 07:41:01编辑:auto阅读(1830)
Python版本:3.4.1
>>> import re
>>> punc = '[,.!\']'
>>> data = 'a,b.c!d\''
>>> print (re.sub(punc, '', data))
abcd
上一篇: python改变索引总结
下一篇: python 常用包总结
48885
47962
38735
35875
30300
27062
26084
20919
20728
19090
552°
632°
637°
642°
613°
593°
666°
734°
857°
983°