Python pydoc模块
来源:互联网 发布:中山淘宝产品摄影 编辑:程序博客网 时间:2024/04/30 19:16
The pydoc module imports a Python module and uses the contents to generate help text at runtime. The output includes docstrings for any objects that have them, and all of the documentable contents of the module are described.
Plain Text Help¶
Running:
$ pydoc atexit
Produces plaintext help on the console, using your pager if one is configured.
HTML Help¶
You can also cause pydoc to generate HTML output, either writing a static file to a local directory or starting a web server to browse documentation online.
$ pydoc -w atexit
Creates atexit.html in the current directory.
$ pydoc -p 5000
Starts a web server listening at http://localhost:5000/. The server generates documentation as you browse through the available modules.
Interactive Help¶
pydoc also adds a function help() to the__builtins__ so you can access the same information from the Python interpreter prompt.
$ pythonPython 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> help('atexit')Help on module atexit:NAME atexitFILE /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/atexit.py...
看了以下2篇文章:
http://www.ibm.com/developerworks/cn/linux/sdk/python/charm-19/
http://blog.csdn.net/hoxide/article/details/51506
- Python pydoc模块
- Python: pydoc 和 distutils 模块
- 可爱的 Python: pydoc 和 distutils 模块
- python获取pydoc
- python查看pydoc
- Python文档生成工具pydoc
- Python文档生成工具pydoc
- Python文档生成工具pydoc
- python的开发手册 pydoc
- python学习-错误-pydoc不能使用
- 惊喜Python 3.3后的pydoc功能
- Python文档生成工具pydoc使用介绍
- Python文档生成工具pydoc使用介绍
- Python文档生成工具pydoc使用介绍
- python查看帮助文档的命令--pydoc
- python 参看函数的小方法 pydoc
- Python学习笔记-pydoc的使用(待补充)
- python 笔记 提示与pydoc初探——12.25
- 设计模式之原型模式(Prototype)
- JQuery中国省市区无刷新三级联动查询
- 市场调研中的定性/定量分析
- UVA 11991 Easy Problem from Rujia Liu?
- 《财政学》哈维罗森
- Python pydoc模块
- HDU1050 Moving Tables
- iOS UITextField 只能输入数字和小数点,只能有两位小数
- 揭开ZCMS2.0系统中权限体系的神秘面纱
- 黑马程序员 for练习
- 文件映射类---VC
- Objective-C的运行时机制,反射机制
- jQuery 正确书写function
- 链表的基本结构及常用算法