>>> x = "hello world"
>>> x
'hello world'
>>> id(x)
140461077304368
We get the address 140461077304368 which contains hello world.
>>> dir()
['__annotations__', '__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__spec__', 'x']
The variable name x is in the namespace,what is the x 's address ?There is a also container which contain x,what is the address for container ?
dir() will ocupy memory space,x locate in the space,what is the address for the space? what is the address for items such as __spec__ then?