We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Numpy
- Concatenate
- Discussions
Concatenate
Concatenate
Sort by
recency
|
428 Discussions
|
Please Login in order to post a comment
mport numpy as np
n, m, p = map(int, input().split())
y1 = np.array([input().split() for _ in range(n)], int) y2 = np.array([input().split() for _ in range(m)], int)
cat = np.concatenate((y1,y2), axis = 0)
print(cat)
import numpy as np n,m,p=map(int,input().split()) ar1=np.array([list(map(int,input().split())) for i in range(n)]) ar2=np.array([list(map(int,input().split())) for j in range(m)]) print(np.concatenate((ar1,ar2)))