id() 用来查看一个变量在内存中的地址 In [1]: name = "Tom" In [2]: id(name) Out[2]: 140075720412136 转载于:https://www.cnblogs.com/pzk7788/p/10186555.html