Python中help() 与 dir()
2016-07-28 20:24
435 查看
在Python中行走的拐杖:help() 与 dir()
1.
Python v2.7.1 documentation » The Python Standard Library »
2. Built-in Functions
找到help()
Invoke the built-in help system. (This function is intended for interactive use.) If no argument is given, the interactive help system starts on the interpreter console. If the argument is a string,
then the string is looked up as the name of a module, function, class, method, keyword, or documentation topic, and a help page is printed on the console. If the argument is any other kind of object, a help page on the object
is generated.
This function is added to the built-in namespace by the
New in version 2.2.
>>>help(dir) 即可
2. dir()
>>>import copy
>>>[n for n in dir(copy) if not n.startswith('_')]
Python v2.7.1 documentation »
The Python Standard Library »
Python v2.7.1 documentation »
The Python Standard Library »
1.
Python v2.7.1 documentation » The Python Standard Library »
2. Built-in Functions
找到help()
help([object])
Invoke the built-in help system. (This function is intended for interactive use.) If no argument is given, the interactive help system starts on the interpreter console. If the argument is a string,
then the string is looked up as the name of a module, function, class, method, keyword, or documentation topic, and a help page is printed on the console. If the argument is any other kind of object, a help page on the object
is generated.
This function is added to the built-in namespace by the
sitemodule.
New in version 2.2.
>>>help(dir) 即可
2. dir()
>>>import copy
>>>[n for n in dir(copy) if not n.startswith('_')]
Python v2.7.1 documentation »
The Python Standard Library »
Python v2.7.1 documentation »
The Python Standard Library »
相关文章推荐
- Python动态类型的学习---引用的理解
- Python3写爬虫(四)多线程实现数据爬取
- 垃圾邮件过滤器 python简单实现
- 下载并遍历 names.txt 文件,输出长度最长的回文人名。
- install and upgrade scrapy
- Scrapy的架构介绍
- Centos6 编译安装Python
- 使用Python生成Excel格式的图片
- 让Python文件也可以当bat文件运行
- [Python]推算数独
- Python中zip()函数用法举例
- Python中map()函数浅析
- Python将excel导入到mysql中
- Python在CAM软件Genesis2000中的应用
- 使用Shiboken为C++和Qt库创建Python绑定
- FREEBASIC 编译可被python调用的dll函数示例
- Python 七步捉虫法