python报数组越界,python数组过滤越界
我尝试在python中执行此操作,但是我收到一个错误:import numpy as nparray_to_filter = np.array([1,2,3,4,5])equal_array = np.array([1,2,5,5,5])array_to_filter[equal_array]这导致:IndexError: index 5 is out of bounds for axis 0 w...