Python - 加载了多少个默认模块
我需要知道,当我默认在终端上运行我的 python 时,加载了多少个不需要导入即可使用的模块,我可以直接使用哪些模块? 我的系统环境是 Ubuntu 11.04 问候
I need to know, When i run My python over terminal by default how many module are loaded with it which i do not have to import to use, which modules i can directly use ??
My System Env is Ubuntu 11.04
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这将为您提供一长串内置函数。
正如马特指出的,您必须导入其余部分才能使用它。
This will give you a long list of the built in functions.
As Matt pointed, you'll have to import the rest before you can use it.
标准库中未标记为内置的任何部分(例如
file
类、set
类、locals
函数等)驻留在一些应在使用之前导入的外部模块中。这也包括看似“基本”的模块,例如 sys 或 math 。如果您不确定特定函数,请在此处查找内置列表:http://docs。 python.org/library/functions.html
Any part of standard library which is not labeled as built-in (e.g.
file
class,set
class,locals
function, etc.) resides in some external module that should be imported prior to usage. This includes seemingly "basic" modules too, such assys
ormath
.If you are unsure about particular function, look up the built-ins list here: http://docs.python.org/library/functions.html
您希望使用标准库中的任何模块都必须先导入,然后才能使用它们。
Any modules you wish to use from the standard library must be imported before you can use them.