【小白do笔记】python正则 AttributeError: 'NoneType' object has no attribute 'group' 问题与解决
练习用 search() 和 group() 提取一段文字,代码如下:
import re
test8 = 'When I do count the clock that tells the time,\
\nAnd see the brave day sunk in hideous night;\
\nWhen I behold the violet past prime,\
...
原创
2020-04-24 17:10:05 ·
573 阅读 ·
0 评论