I am trying to use re.findall to split one string:
string = '1.1 2 -4259.8774 0.000000 0.707664 0.002210 -0.004314-0.004912-0.000823'
I tried with:
match = re.findall(r'-?d+.?d+m?', string)
but I got:
['1.1', '-4259.8774', '0.000000', '0.707664', '0.002210', '-0.004314', '-0.004912',
'-0.000823']
The second string '2' is missing. What I want is:
['1.1', '2', '-4259.8774', '0.000000', '0.707664', '0.002210', '-0.004314', '-0.004912',
'-0.000823']
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…