回答編集履歴
1
d
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
np.ones_like() ですべての値が True の配列を作成し、端以外の要素に
|
1
|
+
np.ones_like() ですべての値が True の配列を作成し、端以外の要素に False を代入して作成すればよいのではないでしょうか。
|
2
2
|
|
3
3
|
```python
|
4
4
|
a = np.random.randn(10, 10)
|