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

posted @ 2021-05-28 14:55  说分手后还能做炮友?  阅读(943)  评论(0编辑  收藏  举报