기능이 여러 조건 인 Numpy dists라는 거리 배열이 있습니다. 두 값 사이의 dists를 선택하고 싶습니다. 이를 위해 다음 코드 줄을 작성했습니다. dists[(np.where(dists >= r)) and (np.where(dists # function which returns True when constraints are satisfied. >>> func = lambda d: d >= r and d>> >>> # Apply constraints element-wise to the dists array. >>> result = np.vectorize(func)(dists) >>> >>> result = np.where(result) # Get output. 선명한 출력 np.argwhere대..