擅长:python、mysql、java
<pre><code>In [81]: data=numpy.genfromtxt(inputFile, delimiter=',')[:, :-1]
In [82]: data
Out[82]:
array([[-1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[-1., 0., 0., 3., 0., 0., 1., 0., 0., 0., 0., 0., 1.,
0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0.],
[ 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 6.]])
</code></pre>
<p>如果您想自己解析它:</p>
^{pr2}$