[Python installation and configuration tutorial]

Python was designed by Guido van Rossum of the Netherlands Research Society for Mathematics and Computer Science in the early 1990s as an alternative to a language called ABC. Python provides efficient high-level data structures and simple and effective object-oriented programming. Python syntax and dynamic types, as well as the nature of interpreted languages, make it a programming language for scripting and rapid application development on most platforms. With the continuous update of versions and the addition of new language features, it is gradually used for independent, large project development.
The Python interpreter is easy to extend, and new functions and data types can be extended using C language or C++ (or other languages ​​that can be called from C). Python can also be used as an extension programming language in customizable software. Python's rich standard library provides source code or machine code for each major system platform.

Python download

To download the Python installation package, you can directly go to the official website to download it: Python official website, select the version you need to download.
insert image description here

I chose the version of Python3.10 ( if you are a beginner, it is not recommended to install a new version of Python ).
insert image description here

After the download is complete, you will get a file like this:
insert image description here

Install Python

Double-click to run the installer to enter the installation interface.
insert image description here
Check the Add Python 3.10 to PATH option, and click Install Now to install immediately. Wait for the installation to complete.
insert image description here
The following interface appears, indicating that the installation is successful:
insert image description here
Check whether the installation is successful : win+r, enter cmd to open the command line, enter python, and press Enter. The following results indicate that the python installation is correct:
insert image description here

first python program

Find the installed Python IDEA and open it,
insert image description here
click File---->>New File, enter the following code in the opened editor:
insert image description here
save the file, and execute this file (Run---->>>Run Module), execute The result is as follows:
insert image description hereAt this point, the basic installation and configuration of Python are all completed.

Guess you like

Origin blog.csdn.net/qq_43884946/article/details/129401190