我发现官方Python文档是导航的噩梦,但我喜欢railsapi.有没有人知道具有与railsapi类似功能的Python标准库文档的浏览器?特别是类浏览器侧边栏和实时搜索.
编辑:我对pydoc很熟悉,它对在线文档,IMO并没有太大的改进.
iPython是一个交互式 Python shell 替代品(读作:增强),包含??运算符,它可以让您方便地打印 pydoc 信息。
例如:
In [5]: eval??
Type: builtin_function_or_method
Base Class: <type 'builtin_function_or_method'>
String Form: <built-in function eval>
Namespace: Python builtin
Docstring [source file open failed]:
eval(source[, globals[, locals]]) -> value
Evaluate the source in the context of globals and locals.
The source may be a string representing a Python expression
or a code object as returned by compile().
The globals must be a dictionary and locals can be any mapping,
defaulting to the current globals and locals.
If only globals is given, locals defaults to it.
Run Code Online (Sandbox Code Playgroud)
可能不完全是您正在寻找的内容,但它是与 Python 文档交互的好方法。
| 归档时间: |
|
| 查看次数: |
1220 次 |
| 最近记录: |