有没有像railsapi.com一样好的Python文档浏览器?
我觉得官方的Python文档很难找东西,但我很喜欢railsapi。有没有人知道有没有类似railsapi那样的Python标准库文档浏览器?特别是像类浏览器侧边栏和实时搜索这样的功能。
补充一下:我知道pydoc,但我觉得它对在线文档的改进不大。
5 个回答
2
还有一个开源的跨平台替代工具,叫做Zeal。
它可以通过一个全局快捷键(Alt+Space)来使用,支持快速搜索,能够处理很多种文档格式和库(比如django、numpy、scipy、six等等),还支持其他编程语言。
2
是的,有一个很棒的文档浏览器,适用于Python、Django、JavaScript、iOS等,叫做Dash。这个软件只适用于Mac电脑。你可以从Mac应用商店下载。如果你有Mac电脑,一定会喜欢这个工具的。
4
iPython 是一个可以替代普通 Python 命令行的工具(可以理解为一种增强版),它有一个很方便的功能,就是 ??
操作符,可以让你快速查看 Python 的文档信息。
举个例子:
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.
虽然这可能不是你想要的完全内容,但它是一个很好的方式来与 Python 的文档进行互动。