locals()

locals() 函数 返回当前作用域的局部变量字典,它是一个可写的字典
posted @ 2024-01-11 22:03  tslam  阅读(2)  评论(0编辑  收藏  举报