我刚开始学习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。
提前感谢任何建议!
help
。 - mikey