How to get interactive input from user and to be able to use arrowkeys while entering input?

后端 未结 3 575
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-12 04:56

When I do a raw_input() and enter values, I am not able to use my arrow-keys to change stuff... is there any way for doing that?

Thanx readline module helps in line

3条回答
  •  既然无缘
    2021-01-12 05:27

    For those looking for examples, there's a nice introduction to the readline module here: https://pymotw.com/2/readline/

提交回复
热议问题