Numpy中array的基本操作(2)

Numpy中array的基本操作(2) Numpy中如何對數組進行索引查詢 這裏介紹常用的3中對array的索引:1.普通索引 2.fancy索引 3.bool索引 一 普通的indexing: 以二維數組爲例: 跟python中的list相同,array的序號也是從0開始的哦 X.arange(5) = [0, 1, 2, 3, 4] 二 Fancy indexing: 通過這種索引方式,很容易
相關文章
相關標籤/搜索