dataone = 8
print(id(dataone))
datatwo = 5
dataone = datatwo
print(dataone)
print(datatwo)
print(id(datatwo))
运行结果:
140711139726592
5
140711139726496
dataone = 8
print(id(dataone))
datatwo = 5
dataone = datatwo
print(dataone)
print(datatwo)
print(id(dataone))
print(id(datatwo))
运行结果:
140711139726592
5
5
140711139726496
140711139726496