How to repeat last command in python interpreter shell?

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

    For anaconda for python 3.5, I needed to install ncurses

    conda install ncurses
    

    After the ncurses install tab complete, history, and navigating via left and right arrows worked in the interactive shell.

提交回复
热议问题