内置函数id,返回内存地址

 1 a = 2
 2 def b():
 3     a = 3
 4     print id(a)
 5 class c():
 6     def __init__(self):
 7         print id(c)
 8 d =c()
 9 print id(d)
10 print d
原文地址:https://www.cnblogs.com/saolv/p/6849264.html