pause/resume a python script in middle

后端 未结 9 1494
再見小時候
再見小時候 2020-12-28 16:38

Can I have a running python script(under Windows)being paused in the middle by user , and resume again when user decides ?

There is a main manager program which gen

9条回答
  •  萌比男神i
    2020-12-28 17:34

    Have you tried the obvious and print a prompt then read a line from stdin? That will pause your whole script.

    What you asked in your original question isn't very clear, so if this doesn't do what you want, can you explain why?

提交回复
热议问题