可以用下面的代码来做
number = '2 -99.0 -99.0 -99.0 -99.0 25.780703 0.2757377 25.349 0.303 23.819 0.051 22.765 0.031 22.258 0.028 21.976 0.035 22.164 0.036 22.011 0.047 -99.0 -99.0 -99.0 -99.0 21.557 0.118 21.734 0.115 16383 0.2755 969 33.950005 -5.488724 0 -1'
array = number.split(' ')
array = [a for a in array if len(a) > 0]
print array