📜  如何选择 numpy 数组的一部分 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:23.479000             🧑  作者: Mango

代码示例1
import numpy as np

x = np.array([1,2,4,3,5,1,4,2])#create an array...

x[n]#where n is any value from the size of the array 
    #e.g. x[1] is 2, x[5] is 1.