array1 = [1,2,3,4] array2 = [5,6,7,8] #final = [1,2,3,4,5,6,7,8] final = np.append(np.array(array1),np.array(array2)) print(final)
#获得[ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.],可以用来补足array zeros = np.zeros(10) print(zeros)
array1 = [1,2,3,4] array2 = [5,6,7,8] #final = [1,2,3,4,5,6,7,8] final = np.append(np.array(array1),np.array(array2)) print(final)
#获得[ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.],可以用来补足array zeros = np.zeros(10) print(zeros)
转载于:https://my.oschina.net/u/3673704/blog/1541126