In c / c ++ by acquisition variable memory address &, * by acquiring data in a memory address.
In python, that how to get the data it acquired by id variable memory address memory address?
import ctypes value = ' Hello World ' # define a string variable address = the above mentioned id (value) # get value address assigned address the get_value = ctypes.cast (address, ctypes.py_object) .Value read address variables # print(address,get_value)
2390895579248 hello world