vector = np.array ([2Jing 4 Jing 6 Jing 8 Jing 10])
deal with 1: 2 to 4 elements, take the reverse
vector = np.array([1,2,3,4,5,6])
vector[vector>2]
vector[np.where(vector>3)]
processing 2: reverse values greater than 2 and less than 8
:
vector[vector>1 and vector<5]
:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
I wonder why range interpretation can"t be done