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

后端 未结 3 576
爱一瞬间的悲伤
爱一瞬间的悲伤 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:38

    Try loading the readline module (import readline). That will make things work for you.

提交回复
热议问题