The World Wide Web, restored to 800 pixels of glory.
GeezerVison is showing www.runoob.com — Python id() 函数 | 菜鸟教程
Python 内置函数
id() 函数返回对象的唯一标识符,标识符是一个整数。
CPython 中 id() 函数用于获取对象的内存地址。
id 语法:
id([object])
参数说明:
返回对象的内存地址。
以下实例展示了 id 的使用方法:
取消