dataone = 8 print(id(dataone)) datatwo = 5 print(id(datatwo)) dataone = datatwo print(dataone) print(id(dataone)) print(dataone is datatwo)
输出结果如下:
140705140011488 140705140011392 5 140705140011392 True
输出结果如下: