Yes.
>>> import gc
>>> gc.get_objects()
Not that you'll find that useful. There is a lot of them. :-) Over 4000 just when you start Python.
Possibly a bit more useful is all the variables active locally:
>>> locals()
And the one active globally:
>>> globals()
(Note that "globally" in Python isn't really global as such. For that, you need the gc.get_objects()
above, and that you are unlikely to ever find useful, as mentioned).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…