擅长:python、mysql、java
<pre><code>In [1]: import numpy as np
In [2]: from StringIO import StringIO
In [3]: txt ="""2 3 4
...: 1 5 6
...: 5 4 7"""
In [4]: f = StringIO(txt)
In [5]: arr = np.loadtxt(f,dtype = int)
In [6]: np.sum(arr,axis = 0)
Out[6]: array([ 8, 12, 17])
</code></pre>