Python where()函数与IDL where()函数的比较
本人最近对python的where函数产生了一些疑问,因为它和IDL中的where函数不太一样,本文主要就两种语言的where函数进行简单的比较。
1 . Python 的where函数在多条件下的判断
import numpy as np
A = np.random.randn(10000, 10000)
B = np.random.randn(10000, 10000) * 10
index = np.where( (A > -1) & (A < 1) &