如何查找在范围内的数字?
c = array[2,3,4,5,6]
>>> c>3
>>> array([False, False, True, True, True]
然而,当我在两个数字之间给出c时,它会返回错误
>>> 2<c<5
>>> ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
期望的输出是
array([False, True, True, False, False]