python数据处理学习

1,numpy处理多维数组

a = np.random.randint(0,20,(5,6))

#处理连续时,不加方括号

print(a[1:3,0:2)

#处理离散时,加方括号

print(a[[0,1],[2,3]]

posted @ 2021-10-14 20:00  dream_fu  阅读(20)  评论(0编辑  收藏  举报