import numpy as np a = [0, 1, 2, 3, 4] #One-dimensional array 1 b = [5, 6, 7, 8, 9] #One-dimensional array 2 c = np.c_[a, b].flat[:] #Synthetic print(c)
out
[0 5 1 6 2 7 3 8 4 9] #The output is ndarray
Recommended Posts