擅长:python、mysql、java
<p>我建议看看<code>re.findall</code>的<a href="https://docs.python.org/3/library/re.html#re.findall" rel="nofollow noreferrer">documentation</a></p>
<p>具体问题的答案是<code>re.findall(r'\bTwinkle\b.*?\blittle\b', text1,re.DOTALL)</code>或<code>re.findall(r'\bTwinkle\b.*?\blittle\b', text1,re.MULTILINE)</code></p>