How to get user input during a while loop without blocking

后端 未结 3 1650
说谎
说谎 2020-12-10 22:18

I\'m trying to write a while loop that constantly updates the screen by using os.system(\"clear\") and then printing out a different text message every few seconds. How do I

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-10 23:04

    You can also check one of the recipes available out there, which gives you the functionality you're looking for for both Unix and Windows.

提交回复
热议问题