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

猜你喜欢

转载自blog.csdn.net/qq_45935025/article/details/116753885