<p>您可以使用捕获组和反向引用的模式来匹配您的值。你知道吗</p>
<pre><code>(\d+\.\d+)(?: \1)*
</code></pre>
<p><a href="https://regex101.com/r/grKqCu/1" rel="nofollow noreferrer">regex demo</a>| <a href="http://ideone.com/FCg4FD" rel="nofollow noreferrer">Python demo</a></p>
<p>然后你就可以把火柴分在一块空地上。你知道吗</p>
<pre><code>import re
regex = r"(\d+\.\d+)(?: \1)*"
test_str = "46016.0000000 46016.0000000 46016.0000000 46016.0000000 46016.0000000 46019.0000000 46019.0000000 46019.0000000 46019.0000000 46019.0000000 46015.0000000 46015.0000000 46015.0000000 46015.0000000 46015.0000000 46016.0000000 46016.0000000 46016.0000000 46016.0000000 46016.0000000 46019.0000000 46019.0000000 46019.0000000 46019.0000000 46019.0000000 46015.0000000 46015.0000000 46015.0000000 46015.0000000 46015.0000000 46016.0000000 46016.0000000 46016.0000000 46016.0000000 46016.0000000"
matches = re.finditer(regex, test_str, re.MULTILINE)
new_list = []
for matchNum, match in enumerate(matches, start=1):
new_list.append(match.group().split(" "))
print(new_list)
</code></pre>
<p>输出</p>
<pre><code>[['46016.0000000', '46016.0000000', '46016.0000000', '46016.0000000', '46016.0000000'], ['46019.0000000', '46019.0000000', '46019.0000000', '46019.0000000', '46019.0000000'], ['46015.0000000', '46015.0000000', '46015.0000000', '46015.0000000', '46015.0000000'], ['46016.0000000', '46016.0000000', '46016.0000000', '46016.0000000', '46016.0000000'], ['46019.0000000', '46019.0000000', '46019.0000000', '46019.0000000', '46019.0000000'], ['46015.0000000', '46015.0000000', '46015.0000000', '46015.0000000', '46015.0000000'], ['46016.0000000', '46016.0000000', '46016.0000000', '46016.0000000', '46016.0000000']]
</code></pre>