Python如何查看变量在内存中的地址 在python中可以用id()函数获取对象的内存地址。 用法: object = 1 + 2 print(id(object)) #4304947776 object -- 对象