Home > Topic List > How pycharm runs python files
How to run python files in pycharm: Use the "run" menu: click "run">"run 'file name'"; use shortcut keys: windows/linux: ctrl + shift + f10, macos: cmd + shift + f10; use tools Bar button: Click the green triangle play button; Using the debugger: Add a breakpoint and click "run" > "debug 'filename'"; From the command line: Run the command "python filename.py" in the terminal window. This topic provides you with relevant articles