📜  python打印内存中的所有变量 - Python代码示例

📅  最后修改于: 2022-03-11 14:47:24.131000             🧑  作者: Mango

代码示例1
# View names of all variables currently in memory
# might need to run twice because the loop may add a varaible to memory

for name in vars().keys():
    print(name)