数组相减:
a = array([20, 30, 40, 50])print ab = arange(4)print bc = a-bprint c结果:
[20 30 40 50][0 1 2 3][20 29 38 47]