回答編集履歴
1
例を1つ追加
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
```
|
18
18
|
|
19
|
-
>>> a=numpy.array([[1,2],[3,4]])
|
19
|
+
>>> a=numpy.array([[1,2],[3,4]]) # わかりやすいように質問とは異なります
|
20
20
|
|
21
21
|
|
22
22
|
|
@@ -28,15 +28,11 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
|
32
|
-
|
33
31
|
>>> a == [1,2]
|
34
32
|
|
35
33
|
array([[ True, True],
|
36
34
|
|
37
35
|
[False, False]])
|
38
|
-
|
39
|
-
|
40
36
|
|
41
37
|
|
42
38
|
|
@@ -53,6 +49,14 @@
|
|
53
49
|
array([[ True, False],
|
54
50
|
|
55
51
|
[False, True]])
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
>>> a == [3,2]
|
56
|
+
|
57
|
+
array([[False, True],
|
58
|
+
|
59
|
+
[ True, False]])
|
56
60
|
|
57
61
|
```
|
58
62
|
|