can';t在Python 2.7交互模式下使用.help()函数后退出提示

can';t在Python 2.7交互模式下使用.help()函数后退出提示,python,Python,我刚开始学习Python,并在交互模式下对不同的字符串方法使用help()函数。 例如: >>> S = 'abcd' >>> help(S.isdigit) 产出如预期: Help on built-in function isdigit: isdigit(...) S.isdigit() -> bool Return True if all characters in S are digits and there is

我刚开始学习Python,并在交互模式下对不同的字符串方法使用help()函数。 例如:

>>> S = 'abcd'
>>> help(S.isdigit)
产出如预期:

Help on built-in function isdigit:

isdigit(...)
    S.isdigit() -> bool

    Return True if all characters in S are digits
    and there is at least one character in S, False otherwise.
(END)
不幸的是,无论按哪个按钮,我似乎都无法退出此提示(CTRL+D也不起作用)。 我可以关闭航站楼,但显然很麻烦

我使用的是Ubuntu 16.04 LTS


提前感谢您的建议

在Python的交互式shell中输入
help
,将调用

将输出打印到控制台时,
pydoc
尝试对输出进行分页,以便于阅读。如果设置了
PAGER
环境变量,
pydoc
将使用其值作为分页程序

除非您对其进行了其他配置,否则pydoc可能正在使用。在这种情况下,按Q键退出



注意:许多程序使用的键绑定与
类似。我会将Q添加到您的键盘命令列表中,以便在您不知道如何退出程序时尝试。

我在HPC上不断遇到此问题,无法从“帮助”窗口中退出。似乎什么都不管用。我尽量避免在HPC上使用
help