How to stop Python closing immediately when executed in Microsoft Windows

后端 未结 15 2221
北荒
北荒 2020-12-02 22:43

I have just started college and we are going to be using python. We really have done nothing so I have downloaded the program and done some print commands, and that\'s it.

15条回答
  •  日久生厌
    2020-12-02 23:20

    Late in here, but in case someone comes here from google---

    Go to the location of your .py file. Press SHIFT then right click anywhere and choose open command prompt from here. Once it's up, Just add

    "python NameOfTheProg.py" to the cmd line

提交回复
热议问题