Interacting with program after execution

前端 未结 3 1608
刺人心
刺人心 2020-11-30 06:14

In PyCharm, after I run a script it automatically kills it:

C:\\Users\\Sean.virtualenvs\\Stanley\\Scripts\\python.exe C:/Users/Sean/PycharmProjects/Stanl

3条回答
  •  生来不讨喜
    2020-11-30 06:39

    UPDATE
    Starting with version 4.0 there's an option Show command line afterwards (renamed in later versions to Run with Python console) when editing run/debug configuration in Run|Edit Configurations....


    From output of python --help:

    -i : inspect interactively after running script; forces a prompt even if stdin does not appear to be a terminal; also PYTHONINSPECT=x

    To set interpreter option in PyCharm go to Run|Edit Configuration

提交回复
热议问题