V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
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()也输出被调用的自由变量。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2503 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 07:02 · PVG 15:02 · LAX 00:02 · JFK 03:02
♥ Do have faith in what you're doing.