回答編集履歴
1
answer
CHANGED
@@ -10,5 +10,5 @@
|
|
10
10
|
([True], Matrix1d[1:] != Matrix1d[:-1], [True])).nonzero()[0])
|
11
11
|
base_array = repeat.copy()
|
12
12
|
base_array[::2] = 0
|
13
|
-
|
13
|
+
result_Matrix = base_array.repeat(repeat).reshape(Matrix.shape).T
|
14
14
|
```
|