Python报错:The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

 数组中有多个数据时,部分满足条件时

用a.any() 返回TURE.

只有所有元素都满足条件是

用a.all()菜返回TURE

你可能感兴趣的:(python)