You are viewing a single comment's thread. Return to all comments →
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))
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 →
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))