运行下面代码,报如下错误
for name in globals(): print(name)
解决办法是:将待遍历的对象转换成列表
for name in list(globals()): print(name)
标签:name,dictionary,Python,RuntimeError,changed,iteration From: https://www.cnblogs.com/bravesunforever/p/17729044.html
运行下面代码,报如下错误
for name in globals(): print(name)
解决办法是:将待遍历的对象转换成列表
for name in list(globals()): print(name)
标签:name,dictionary,Python,RuntimeError,changed,iteration From: https://www.cnblogs.com/bravesunforever/p/17729044.html