python - how do I keep a program running -
this question has answer here:
- how keep python script output window open? 14 answers
every time run python file , cmd pops after enter of inputs closes. wondering how keep can display output without making new input.
you can pause execution of python script waiting input.
if don't want additional input, on windows can use msvcrt
wait keypress without showing prompt, e.g.
import msvcrt def wait(): msvcrt.getch()
then add wait()
script want pause.
if add @ end of script pause , wait key press before closing window.
Comments
Post a Comment