How to repeat last command in python interpreter shell?

后端 未结 26 1026
一个人的身影
一个人的身影 2020-11-29 16:43

How do I repeat the last command? The usual keys: Up, Ctrl+Up, Alt-p don\'t work. They produce nonsensical characters.

(ve)[kakarukeys@localhost ve]$ python
         


        
相关标签:
26条回答
  • 2020-11-29 17:18

    If using MacOSX, press control p to cycle up and control n to cycle down. I am using IDLE Python 3.4.1 Shell.

    0 讨论(0)
  • 2020-11-29 17:19

    Alt + p for previous command from histroy, Alt + n for next command from history.

    This is default configure, and you can change these key shortcut at your preference from Options -> Configure IDLE.

    0 讨论(0)
提交回复
热议问题