>>> match = re.findall(r'ww', 'hello')
>>> print match
['he', 'll']
Since ww means two characters, 'he' and 'll' are expected. But why do 'el' and 'lo' not match the regex?
>>> match1 = re.findall(r'el', 'hello')
>>> print match1
['el']
>>>
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…