1. 首页
  2. 服务器应用
  3. Proxy
  4. Python基于locals返回作用域字典

Python基于locals返回作用域字典

上传者: 2020-12-17 08:04:06上传 PDF文件 31.89KB 热度 13次
英文文档: locals() Update and return a dictionary representing the current local symbol table. Free variables are returned by locals()when it is called in function blocks, but not in class blocks. 返回当前作用域内的局部变量和其值组成的字典 说明: 1. 函数功能返回当前作用域内的局部变量和其值组成的字典,与globals函数类似(返回全局变量) >>> locals() {'__package__
下载地址
用户评论