import numpy as np vec = np.array( [ 19, 29, 39, 49 ] ) vec[ -4 ]
결과
19
vec[ -3 ]
29
vec[-2]
39
vec[-1]
49