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()
我想让这个为真怎么做
4 回答4.4k 阅读✓ 已解决
1 回答3.1k 阅读✓ 已解决
4 回答3.8k 阅读✓ 已解决
3 回答2.1k 阅读✓ 已解决
1 回答4.4k 阅读✓ 已解决
1 回答3.9k 阅读✓ 已解决
1 回答2.8k 阅读✓ 已解决
np.arange(0,10).any()