回答編集履歴
1
追記
answer
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
a = A
|
6
6
|
|
7
7
|
a.append(1)
|
8
|
-
print(A)
|
8
|
+
print(A) # => [1]と出力される
|
9
9
|
```
|
10
10
|
|
11
11
|
**実行** [Visualize Python, Java, JavaScript, C, C++, Ruby code execution](http://pythontutor.com/visualize.html#code=A%20%3D%20%5B1%5D%0Aa%20%3D%20A%0A%0Aa.append%282%29%0Aprint%28A%29&cumulative=false&curInstr=2&heapPrimitives=nevernest&mode=display&origin=opt-frontend.js&py=3&rawInputLstJSON=%5B%5D&textReferences=false)
|