Persistent Python Command-Line History

前端 未结 5 745
灰色年华
灰色年华 2021-02-04 07:29

I\'d like to be able to \"up-arrow\" to commands that I input in a previous Python interpreter. I have found the readline module which offers functions like:

5条回答
  •  天涯浪人
    2021-02-04 08:16

    Persistent history has been supported out of the box since Python 3.4. See this bug report.

提交回复
热议问题