回答編集履歴
3
変数のid追加
answer
CHANGED
@@ -22,4 +22,10 @@
|
|
22
22
|
15912045088
|
23
23
|
>>> id(square)
|
24
24
|
123145296635696
|
25
|
+
>>> id(x)
|
26
|
+
15912045152
|
27
|
+
>>> id(y)
|
28
|
+
15912045088
|
29
|
+
>>> id(func)
|
30
|
+
123145296635696
|
25
31
|
```
|
2
id表示追加
answer
CHANGED
@@ -16,4 +16,10 @@
|
|
16
16
|
<class 'int'>
|
17
17
|
>>> type(square)
|
18
18
|
<class 'function'>
|
19
|
+
>>> id(3)
|
20
|
+
15912045152
|
21
|
+
>>> id(1)
|
22
|
+
15912045088
|
23
|
+
>>> id(square)
|
24
|
+
123145296635696
|
19
25
|
```
|
1
type表示追加
answer
CHANGED
@@ -10,4 +10,10 @@
|
|
10
10
|
>>> func = square
|
11
11
|
>>> func(x-y)
|
12
12
|
4
|
13
|
+
>>> type(3)
|
14
|
+
<class 'int'>
|
15
|
+
>>> type(1)
|
16
|
+
<class 'int'>
|
17
|
+
>>> type(square)
|
18
|
+
<class 'function'>
|
13
19
|
```
|