使用append方法,例如:
lst = []line = np.genfromtxt('temp.txt', usecols=3, dtype=[('floatname','float')], skip_header=1)lst.append(line)
使用append方法,例如:
lst = []line = np.genfromtxt('temp.txt', usecols=3, dtype=[('floatname','float')], skip_header=1)lst.append(line)