質問編集履歴
2
情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,7 +11,11 @@
|
|
11
11
|
for i in range(height):
|
12
12
|
for j in range(width):
|
13
13
|
if arr[i][j] == False:
|
14
|
-
|
14
|
+
この部分を同じ比率になるようにしたい
|
15
|
+
a[i][j] = bool(random.getrandbits(1))
|
16
|
+
b[i][j] = bool(random.getrandbits(1))
|
17
|
+
c[i][j] = bool(random.getrandbits(1))
|
18
|
+
d[i][j] = bool(random.getrandbits(1))
|
15
19
|
```
|
16
20
|
|
17
21
|
|
1
誤字の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
```python
|
7
7
|
ソースコード
|
8
|
-
a
|
8
|
+
a = b = c = d = np.copy(arr)
|
9
9
|
height, width = arr.shape[0:2]
|
10
10
|
|
11
11
|
for i in range(height):
|