python数据处理学习

1,numpy处理多维数组

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

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

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

#处理离散时,加方括号

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

never never wait
原文地址:https://www.cnblogs.com/lixiangfu/p/15408270.html