python - how do I keep a program running -


this question has answer here:

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

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -