Jak zaimportować tablicę Numpy w Python
>>> import numpy as np
>>> a = np.array([0, 1, 2, 3])
>>> a
array([0, 1, 2, 3])
Dead Dragonfly
>>> import numpy as np
>>> a = np.array([0, 1, 2, 3])
>>> a
array([0, 1, 2, 3])
n, m = map(int, input().split()) # taking number of rows and column
array = numpy.array([input().strip().split() for _ in range(n)], int)
import numpy as np
ary=np.array([1, 2, 3, 4])
print(ary[0]) # 1
print(ary[2]) # 3
print(ary[::2]) # array([1, 3])