質問編集履歴
1
書式の変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
#やりたいこと
|
2
2
|
100×100の白黒画像の各ピクセルをランダムに白(1)か黒(0)に塗って表示したいです。
|
3
|
+
```python
|
3
4
|
|
4
5
|
img = []
|
5
6
|
for _ in range(100):
|
@@ -15,7 +16,8 @@
|
|
15
16
|
|
16
17
|
|
17
18
|
|
18
|
-
show_img(img)
|
19
|
+
show_img(img)
|
20
|
+
```
|
19
21
|
|
20
22
|
#エラー
|
21
23
|
TypeError: Image data of dtype object cannot be converted to float
|