回答編集履歴
1
修正
test
CHANGED
@@ -28,24 +28,4 @@
|
|
28
28
|
|
29
29
|
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
|
30
30
|
|
31
|
-
>>>
|
32
|
-
|
33
|
-
>>> (4 < a) and (a < 9)
|
34
|
-
|
35
|
-
Traceback (most recent call last):
|
36
|
-
|
37
|
-
File "<stdin>", line 1, in <module>
|
38
|
-
|
39
|
-
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
|
40
|
-
|
41
|
-
>>>
|
42
|
-
|
43
|
-
>>> # なぜかこれはとおる
|
44
|
-
|
45
|
-
>>> b[(4 < a).__and__(a < 9)]
|
46
|
-
|
47
|
-
array([ 1.19763656e-04, 9.50395015e-05, 9.61164787e-05,
|
48
|
-
|
49
|
-
6.80995858e-05, 6.10737754e-05])
|
50
|
-
|
51
31
|
```
|