How do I access the command history from IDLE?

后端 未结 5 1757
梦如初夏
梦如初夏 2021-01-30 03:59

On bash or Window\'s Command Prompt, we can press the up arrow on keyboard to get the last command, and edit it, and press ENTER again to see the result.

But in Python\'

5条回答
  •  忘了有多久
    2021-01-30 04:14

    You can always edit the file config-keys.cfg found under ~/.idlerc by default; look for the entry "history-previous" and set it to as below...

    history-previous = 
    

    Done.

提交回复
热议问题