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 判断

原文地址:https://www.cnblogs.com/DDBD/p/14822179.html