How to repeat last command in python interpreter shell?

后端 未结 26 1199
一个人的身影
一个人的身影 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:09

    Ctrl+p is the normal alternative to the up arrow. Make sure you have gnu readline enabled in your Python build.

提交回复
热议问题