How to keep a Python script output window open?

前端 未结 23 2926
挽巷
挽巷 2020-11-22 10:54

I have just started with Python. When I execute a python script file on Windows, the output window appears but instantaneously goes away. I need it to stay there so I can an

23条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 10:59

    I found the solution on my py3 enviroment at win10 is just run cmd or powershell as Administrator,and the output would stay at the same console window,any other type of user run python command would cause python to open a new console window.

提交回复
热议问题