python从内存地址读取对象 通过_ctypes包实现 import _ctypes a = 300 print(id(a)) c = id(a) print(_ctypes.PyObj_FromPtr(c)) 结果