You are viewing a single comment's thread. Return to all comments →
import numpy as np` N, M, P = map(int, input().split()) arr1 = [] arr2 = [] for i in range(N): a = list(map(int, input().split())) arr1.append(a) a1 = np.array(arr1) for i in range(M): a = list(map(int, input().split())) arr2.append(a) a2 = np.array(arr2) print (np.concatenate((a1, a2), axis = 0)) `
import numpy as np`
N, M, P = map(int, input().split()) arr1 = [] arr2 = [] for i in range(N): a = list(map(int, input().split())) arr1.append(a) a1 = np.array(arr1)
for i in range(M): a = list(map(int, input().split())) arr2.append(a) a2 = np.array(arr2)
print (np.concatenate((a1, a2), axis = 0)) `
Seems like cookies are disabled on this browser, please enable them to open this website
Concatenate
You are viewing a single comment's thread. Return to all comments →