bool(np.arange(0,10))
# Traceback (most recent call last):
# File "<stdin>", line 1, in <module>
# ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
我想让这个为真怎么做
bool(np.arange(0,10))
# Traceback (most recent call last):
# File "<stdin>", line 1, in <module>
# ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
我想让这个为真怎么做
2 回答4.3k 阅读✓ 已解决
2 回答865 阅读✓ 已解决
1 回答4.1k 阅读✓ 已解决
3 回答867 阅读✓ 已解决
2 回答2.2k 阅读✓ 已解决
4 回答2.6k 阅读
3 回答909 阅读✓ 已解决
np.arange(0,10).any()