擅长:python、mysql、java
<p>步骤:</p>
<ul>
<li>获取字符串列表(<code>str.split(' ')</code>)</li>
<li>去掉“\n”(<code>del arr[-1]</code>)</li>
<li>将字符串列表转换为数字(<a href="https://stackoverflow.com/questions/9338507/converting-a-string-with-scientific-notation-to-an-int-in-python">Converting a string (with scientific notation) to an int in Python</a>)</li>
</ul>
<p>代码:</p>
<pre><code>import decimal # you may also leave this out and use `float` instead of `decimal.Decimal()`
arr = "74 0.4131493371345440E-03 -0.4592776407685850E-03 -0.1725046324754540 \n"
arr = arr.split(' ')
del arr[-1]
arr = [decimal.Decimal(x) for x in arr]
# do your np stuff
</code></pre>
<p>结果:</p>
<pre><code>>>> print(arr)
[Decimal('74'), Decimal('0.0004131493371345440'), Decimal('-0.0004592776407685850'), Decimal('-0.1725046324754540')]
</code></pre>
<p>附言:</p>
<ul>
<li>我不知道您是否首先编写了提供输出的文件,但是如果编写了,您可以考虑从该文件输出一个<code>float()</code>/<code>decimal.Decimal()</code>数组。你知道吗</li>
</ul>