回答編集履歴
1
修正
test
CHANGED
@@ -14,6 +14,8 @@
|
|
14
14
|
|
15
15
|
[0],
|
16
16
|
|
17
|
+
[0],
|
18
|
+
|
17
19
|
[4],
|
18
20
|
|
19
21
|
[0]])
|
@@ -21,6 +23,10 @@
|
|
21
23
|
|
22
24
|
|
23
25
|
rows, cols = np.where(a == 0)
|
26
|
+
|
27
|
+
print(rows) # [1 2 4]
|
28
|
+
|
29
|
+
print(cols) # [0 0 0]
|
24
30
|
|
25
31
|
|
26
32
|
|
@@ -30,6 +36,8 @@
|
|
30
36
|
|
31
37
|
# (1, 0)
|
32
38
|
|
33
|
-
# (
|
39
|
+
# (2, 0)
|
40
|
+
|
41
|
+
# (4, 0)
|
34
42
|
|
35
43
|
```
|