How to open terminal in Pycharm

There are two windows in the toolbar below Pycharm: Python Console and Terminal (as shown below)

 

 

Among them, Python Console is called Python console, that is, Python interactive mode; Terminal is called terminal, that is, command line mode.

There are two main Python interactive modes: CPython is used >>>as a prompt, and IPython is used In [序号]:as a prompt.

The Python interactive mode can directly enter the code, then execute it, and get the result immediately, so the Python interactive mode is mainly used for debugging Python code.

The command line mode is the same as the system CMD (command prompt), which can run various system commands. Such as cd to change the path and so on.

For how to enter the prompt>> mode of Cpython in the command line mode, you can directly enter python in the specified folder. If it is the python file name .py in the input folder, it is to run this file.

Guess you like

Origin blog.csdn.net/weixin_40244676/article/details/108940889