NumPy基礎入門(3)花式索引和索引技巧

學習彙總:點這裏 1.用索引數組創建索引 用索引數組創建索引,若是索引數組a是多維的,則單個索引數組是指的第一維a。web >>> a = np.arange(12)**2 # the first 12 square numbers >>> i = np.array( [ 1,1,3,8,5 ] ) # an array of
相關文章
相關標籤/搜索