Python——PyCharm download and installation

(1) Development environment introduction

    Development environment, English is IDE ( Integrated Development Environment Integrated Development Environment). Don't get hung up on which development environment to use. The development environment is essentially the encapsulation of the Python interpreter python.exe , and the core is the same. It can be said: " The development environment IDE is just a tool for the interpreter", just to make programming more convenient for programmers and reduce error rates, especially spelling mistakes. Currently, the mainstream development environments are as follows: 1 IDLE  Pycharm (recommended) vscode (recommended) jupyter    

 

(2) Introduction to IDLE

1    IDLE is the official standard development environment of Python , and IDLE is installed at the same time after Python is installed . IDLE already has almost all the functions of Python development (smart syntax prompts, different colors to display different types, etc.), and does not require other configurations, which is very suitable for beginners.
2
     IDLE is a simple and compact IDE built into the Python standard distribution , including basic components such as interactive command lines, editors, and debuggers, which are sufficient for most simple applications.
3
4    IDLE is written in pure Python based on Tkinter , and the original author is the father of Python (Uncle Turtle).

(3) IDLE practical operation

1
Steps: Interactive mode ①Start IDLE, the default is to enter the interactive mode. ② Write and execute Python source files

 

 (4) Creation and execution of Python files

        In the interactive environment used earlier, only one statement can be executed at a time; in order to write multiple statements to implement complex logic, we start this chapter by creating a Python file and executing the file.
      In the IDLE environment, we can create a Python file through File -- > new , and edit the content of the file. We can also save files through File -- >save/save as . It is generally saved as a file with the extension py . To execute the edited file, you can use the shortcut key F5 or click Run -- >Run module.

(5) PyCharm download and installation

 Download address: https://www.jetbrains.com/pycharm/download
 Download the corresponding version:
It is the same as installing ordinary software, just click Next. There are only a few frames that require individual attention.

 

 

After the installation is complete, run pycharm . Choose not to import configuration:

(6) Create a python project

 1 option: New Project

 

 Select the path (try not to contain Chinese), project name:

(7) Development and operation of the project 

After opening the project, right click on the project and create a Python file mypy01

To run the py file, right-click the editing area and select Run mypy01 . 

 

(8) Other settings

1
font size:
File→Setting→Editor→Font make the font larger
2
theme style:
File→Setting→Apperence→Dragula (black theme), InteliJ light (white theme)

Guess you like

Origin blog.csdn.net/qq_63976098/article/details/131497795