Using web.py as non blocking http-server

后端 未结 4 1901
梦谈多话
梦谈多话 2021-02-05 11:30

while learning some basic programming with python, i found web.py. i got stuck with a stupid problem:

i wrote a simple console app with a main loop that proccesses items

4条回答
  •  名媛妹妹
    2021-02-05 12:00

    Wouldn't is be simpler to re-write your main-loop code to be a function that you call over and over again, and then call that from the function that you pass to runsimple...

    It's guaranteed not to fully satisfy your requirements, but if you're in a rush, it might be easiest.

提交回复
热议问题