How to keep a Python script output window open?

前端 未结 23 2803
挽巷
挽巷 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 11:18

    If you want to stay cmd-window open AND be in running-file directory this works at Windows 10:

    cmd /k cd /d $(CURRENT_DIRECTORY) && python $(FULL_CURRENT_PATH)
    

提交回复
热议问题