在Python自带的IDE中 ,想输入上一行或下一行的信息可以用快捷键较便捷。
Alt+p : 上一行的输入历史记录
Alt +n :下一行的输入历史记录
官方帮助:
Alt-p retrieves previous command matching what you have typed.
Alt-n retrieves next.
(These are Control-p, Control-n on OS X)
Return while cursor is on a previous command retrieves that command.
Expand word is also useful to reduce typing.