有没有一个像Python一样好的文档浏览器呢railsapi.com网站

2024-09-19 23:37:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我发现official Python documentation导航是个噩梦,但我喜欢railsapi。有没有人知道python标准库文档的浏览器具有与railsapi相似的特性?特别是类浏览器侧边栏和实时搜索。在

编辑:我对pydoc很熟悉,它与在线文档相比并没有多大改进,IMO


Tags: 文档编辑标准documentation浏览器特性pydocofficial
3条回答

iPython,一个交互式的pythonshell替换(read:enhancement),包括??操作符,它为您提供了一个方便的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.

可能不完全是您想要的,但它是与Python文档交互的好方法。在

是的,有一个很棒的文档浏览器,用于Python、Django、JavaScript、iOS等,称为Dash。它只适用于OS X。你可以从Mac应用商店下载。如果你有Mac电脑,你会喜欢的。在

还有一个开源的跨平台替代dash:Zeal

它使用全局快捷方式(Alt+Space),具有即时搜索功能,支持多种文档格式和库(django、numpy、scipy、six等)和其他语言。在

相关问题 更多 >