~
全部博文(5)
分类: Python/Ruby
2010-04-20 09:50:10
pydoc - the Python documentation tool2. 在线文档: ( 如: /release/2.6.5/index.html)
( 这个程序会从提取相应源码文件中的文档文本, 并格式化输出, 其实你也可以找到相应的
源码文件查看 )
pydoc ...
may be the name of a Python:
keyword, topic, function, module, or package,
or a dotted reference to a class or function within a module
or module in a package.
If contains a '/', it is used as the path to a Python source
file to document.
If name is 'keywords', 'topics' or 'modules', a listing of these things
is displayed.
pydoc -k
Search for a keyword in the synopsis lines of all available modules.
pydoc -p
Start an HTTP server on the given port on the local machine.
pydoc -w ...
Write out the HTML documentation for a module to a file in the current
directory. If contains a '/', it is treated as a filename; if
it names a directory, documentation is written for all the contents。
|
|