numpy.where()函數

numpy.where(condition, x, y) 1.如果參數只有condition if give condition only          return 使condition爲True的元素的下標(以多個array元組的形式返回) 2.如果給出全部參數(condition,x, y) if condition==true      return x else     return
相關文章
相關標籤/搜索