Home > Article > Backend Development > How to run py files in pycharm
There are two ways to run Py files in PyCharm: through the menu: click the "Run" menu and select "Run 'filename'". Via shortcut: Use Shift F10 (Windows/Linux) or Cmd Shift F10 (macOS).
Run Py files in PyCharm
Running Py files in PyCharm is very simple. There are two methods: :
Method 1: Use the "Run" menu
Method 2: Use the shortcut keys
Shift
F10
(Windows/Linux) or Cmd
Shift
F10
(macOS). Using either method, PyCharm will create a temporary console in the directory where the file is located and start running the script.
Note:
The above is the detailed content of How to run py files in pycharm. For more information, please follow other related articles on the PHP Chinese website!