import numpy as np >>> a = np.array([1, 2, 3, 4, 5]) >>> a[0] 1 ... 傳回的NumPy 陣列包含了對應的元素,這樣的索引指定方式稱為Fancy indexing,多維陣列時,可以 ...
確定! 回上一頁