#coding:utf-8
import numpy as np
a=np.array([[1,2],[3,4],[5,6],[7,8],[9,10]])
#直接取1-3索引的值
print(a[1:3])
#每隔2 个取一个元素
print(a[:5:2])
#将数组倒叙
print(a[::-1])
#coding:utf-8
import numpy as np
a=np.array([[1,2],[3,4],[5,6],[7,8],[9,10]])
#直接取1-3索引的值
print(a[1:3])
#每隔2 个取一个元素
print(a[:5:2])
#将数组倒叙
print(a[::-1])