Python ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() 如果bool()里是个ndarry这种报错如上, 可以用is not none 判断