What mutable object really means in Python

前端 未结 0 649
没有蜡笔的小新
没有蜡笔的小新 2021-01-07 12:19

I am quite confused about what mutable object really means

A=[1,3,4]
print(id(A))
A.append(1)
print(id(A))

The print-out shows the same addre

相关标签:
回答
  • 消灭零回复
提交回复
热议问题