什么表示在Python中的print/repr上显示的十六进制整数?

sys*_*out 1 python core

在如下所示的交互式会话中:

>>> f=open('test.txt','w')
>>> f
<open file 'test.txt', mode 'w' at 0x6e610>
Run Code Online (Sandbox Code Playgroud)

是什么0x6e610代表,我有什么可以做的Python是十六进制数?

Chr*_*heD 5

>>> f=open('test.txt')
>>> f
<open file 'test.txt', mode 'r' at 0x10047c938>
>>> hex(id(f))
'0x10047c938'
Run Code Online (Sandbox Code Playgroud)

在官方文档中查看id:

返回对象的"标识".这是一个整数(或长整数),保证在该生命周期内该对象是唯一且恒定的.具有非重叠生存期的两个对象可以具有相同的id()值.