擅长:python、mysql、java
<p>您可以使用<a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.savetxt.html" rel="nofollow">NumPy</a><code>savetxt</code>方法来保存数组,而不用担心编码问题。你知道吗</p>
<p>在文件里</p>
<pre><code>>>> np.savetxt('edm.txt', x) # x is an array
</code></pre>