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
|
440 Discussions
|
Please Login in order to post a comment
Fast :
For Python3
import numpy
n, m, p = map(int, input().split()) n_list = [] m_list = [] for _ in range(n): n_list.append(list(map(int, input().split()))) n_array = numpy.array(n_list)
for _ in range(m): m_list.append(list(map(int, input().split()))) m_array = numpy.array(m_list) print (numpy.concatenate((n_array, m_array), axis = 0))