1. Learn
  2. /
  3. 课程
  4. /
  5. Python 函数入门

Connected

道练习

Python 的内置作用域

这里您将了解 Python 的内置作用域,它其实就是一个名为 builtins 的内置模块。不过,要查询 builtins,您需要先 import builtins,"因为名字 builtins 本身并不是内置的……不,我是认真的!"(参见 Mark Lutz 著《Learning Python》第 5 版:http://shop.oreilly.com/product/0636920028154.do)。 在 IPython Shell 中执行 import builtins 之后,运行 dir(builtins),即可打印出模块 builtins 中所有名称的列表。看一看,您会发现很多熟悉的名字!以下哪些名称不在模块 builtins 中?

说明

50 XP

答案选项