Python中help() 与 dir()
来源:互联网 发布:高铁 刘志军 知乎 编辑:程序博客网 时间:2024/06/07 03:51
在Python中行走的拐杖:help() 与 dir()
1.
Python v2.7.1 documentation » The Python Standard Library »
- 2. Built-in Functions
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 site
module.
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中help() 与 dir()
- 在命令行中查看python帮助文档 --dir、help、__doc__
- Python中有用的三个工具:dir, type和help
- Python中dict与dir()
- Python 寻求帮助dir,help
- Python函数---dir(),help(),type()
- 用好Python帮助函数help(),dir(),type()
- Python 查看帮助文档 dir(),help()
- Python 的帮助--help、dir、type
- python文档帮助help()和dir()
- python中3个帮助函数help,dir,type的使用
- python中关于dir()
- python help dir stackoverflow docs google--遇到python问题怎么样解决
- Python之dir()与__dict__的区别
- Python之dir()与__dict__的区别
- 19 Python __dict__与dir()区别
- python dir()
- python dir()
- 顺序表应用3:元素位置互换之移位算法
- 酸性体质和碱性体质
- Mac 校验文件 SHA、MD5
- Hungarian Algorithm(匈牙利算法)
- hdu 5773 2016 Multi-University Training Contest 4(LIS变形)
- Python中help() 与 dir()
- Java泛型的实现:“禁止”泛型数组
- java算法——求最大公约数和最小公倍数
- POJ 1306 Combinations 递推 || 暴力
- 在linux下使用curl访问 多参数url GET参数问题
- Java集合简单案例
- 六个例子彻底理解finally语句块
- 阻塞队列简介
- 1分钟教你学会用adb进行无线调试