Pycharm: run only part of my Python file

后端 未结 5 944
逝去的感伤
逝去的感伤 2020-12-02 06:07

Is it possible to run only a part of a program in PyCharm?

In other editors there is something like a cell which I can run, but I can\'t find such an option in PyCha

5条回答
  •  死守一世寂寞
    2020-12-02 06:59

    You can select a code snippet and use right click menu to choose the action "Execute Selection in console".

提交回复
热议问题