python library for user input

前端 未结 5 1667
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 17:37

I am implementing a small command line tool in python that needs to ask the user a couple of questions. I use

raw_input(\'Are you male or female?\')
<         


        
5条回答
  •  说谎
    说谎 (楼主)
    2021-01-05 18:22

    This question is quite old, but I'm researching it today. The library pyinputplus is recommended by Al Swigert in Automate the Boring Stuff With Python

提交回复
热议问题