140417052192528 140417065645008 140417065645232
a = 2
print (id(a))
b = 2
print (id(b))
a = a + 2
print (id(a))
运行结果为:
140416943003984
140416943003984
140416943004048
c=2.0
d=2.0
print(id(c),id(d),id(2.0))
运行结果为:
140417052192528 140417065645008 140417065645232