在Python交互式会话中运行help()之后继续

时间:2018-09-06 20:55:31

标签: python pagination tty pydoc

我在Python Interactive Session中运行以下代码,并尝试从json中获取有关“加载”方法的帮助,但我不知道在(END)之后继续我的说明,

这是我的代码:

import json
help(json.load)

这就是我得到的:

...
 result of any object literal decode (a ``dict``). The return value of
    ``object_hook`` will be used instead of the ``dict``. This feature
    can be used to implement custom decoders (e.g. JSON-RPC class hinting).

    ``object_pairs_hook`` is an optional function that will be called with the
    result of any object literal decoded with an ordered list of pairs.  The
    return value of ``object_pairs_hook`` will be used instead of the ``dict``.
    This feature can be used to implement custom decoders.  If ``object_hook``
    is also defined, the ``object_pairs_hook`` takes priority.

    To use a custom ``JSONDecoder`` subclass, specify it with the ``cls``
    kwarg; otherwise ``JSONDecoder`` is used.
(END)

您能帮忙(END)之后如何继续吗? (因为我无法键入下一条指令。)

1 个答案:

答案 0 :(得分:1)

q进入 q uit。

我找不到此documented,但是找不到here it is in the source code of pydoc's pager

注意:(END)文本暗示pydoc可能正在委派给另一个程序less,以便在您的平台上分页。但是,相同的快捷键应该可以工作。