回答編集履歴
2
編集
test
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
[組み込み関数 — Python 3.7.4 ドキュメント](https://docs.python.org/ja/3/library/functions.html#repr)
|
5
|
+
[組み込み関数 — Python 3.7.4 ドキュメント (repr)](https://docs.python.org/ja/3/library/functions.html#repr)
|
6
6
|
|
7
|
-
[組み込み型 — Python 3.7.4 ドキュメント](https://docs.python.org/ja/3/library/stdtypes.html#str)
|
7
|
+
[組み込み型 — Python 3.7.4 ドキュメント (str)](https://docs.python.org/ja/3/library/stdtypes.html#str)
|
8
8
|
|
9
9
|
|
10
10
|
|
1
追記
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
` name 'array' is not defined`となるのは単にこの名前空間上で`array`が定義されていないからで、具体的には`array`はnumpyモジュール下にありますから、`print(np.array([1, 2, 3]))`とすれば意図通り動きます。
|
11
|
+
` name 'array' is not defined`となるのは単にこの名前空間上で`array`が定義されていないからで、具体的には`array`はnumpyモジュール下にありますから、`print(np.array([1, 2, 3]))`とすれば意図通り動きます。あるいは、`from numpy import array`と一行加えておけばそのまま動きます。
|
12
12
|
|
13
13
|
|
14
14
|
|