<p>我的代码:`</p>
<pre><code>#!/usr/bin/python
with open("a.dat", "r") as ins:
array = []
for line in ins:
l=line.strip()
array.<a href="https://www.cnpython.com/list/append" class="inner-link">append</a>(l)
a1 = array[:,1]
print a1
</code></pre>
<p>我想把a.dat读作数组,然后取第一个专栏。什么错了吗?在</p>