Non-Blocking raw_input() in python

后端 未结 4 1994
感情败类
感情败类 2020-12-11 05:11

After digging around in SO for a while, I still haven\'t found a good answer to what I would hope is a fairly common need. Basically I need a main thread to do \"stuff\" unt

4条回答
  •  臣服心动
    2020-12-11 05:59

    In addition to MydKnight's answer (starting the thread), you need to change rawInput to raw_input, and it needs to be in some sort of while loop otherwise you'll only get one raw_input() logged.

提交回复
热议问题