V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  winfred  ›  全部回复第 1 页 / 共 1 页
回复总数  1
2014 年 1 月 13 日
回复了 jayn1985 创建的主题 Python 一个Python语法问题求解惑
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.

按官方文档,locals()也输出被调用的自由变量。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1024 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 9ms · UTC 19:20 · PVG 03:20 · LAX 12:20 · JFK 15:20
♥ Do have faith in what you're doing.