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.9k 阅读✓ 已解决
2 回答1k 阅读✓ 已解决
4 回答838 阅读✓ 已解决
3 回答1k 阅读✓ 已解决
3 回答1.1k 阅读✓ 已解决
1 回答2.5k 阅读✓ 已解决
1 回答1.6k 阅读✓ 已解决
np.arange(0,10).any()