First encounter python

In order to keep the soul peaceful, a person should do at least two things that he does not like every day. —— Maugham "The Moon and Sixpence"

Maybe everyone has been anxious at home recently, wants to learn but can't get the energy up, frantically tempting between wanting to learn and being confused.

I am still learning the C language, but today I somehow pythonbecame interested in ** **, maybe I want to learn together, hahaha, maybe I can also learn C++ together in the future.

So today I will open a new language for everyone, its name is very interesting, Chinese is called ** 蟒蛇。**

Does it feel terrifying when you listen, so we generally don't call it its Chinese name, but its English name is ** python(派生)** Using the method of learning English in elementary school, does it sound better?

Insert picture description here
** python的由来** Also very interesting:

The founder of Python is ** 荷兰人吉多·范罗苏姆(Guido van Rossum). During the Christmas period of 1989, in Amsterdam, Guido was determined to develop a new script interpreter in order to pass the boring Christmas, as an inheritance of the ABC language. The reason why Python (meaning boa constrictor) was chosen as the name of the programming language was taken from the British TV comedy "Monty Python's Flying Circus" that was first broadcast in the 1970s.

ABC is an instructional language designed by Guido. As far as Guido himself is concerned, the language ABC is very beautiful and powerful, and is designed for non-professional programmers. However, the ABC language did not succeed. Guido believes that it is caused by its non-openness. Guido is determined to avoid this mistake in Python. At the same time, he also wants to achieve something that has flashed in ABC but has not been realized.

In this way, Python was born in the hands of Guido. It can be said that Python was developed from ABC and was mainly influenced by Modula-3 (another very beautiful and powerful language designed for small groups). And it combines the habits of Unix shell and C.

Python is a cross-platform computer programming language. It is an object-oriented dynamically typed language. It was originally designed for writing automated scripts (shell). With the continuous update of the version and the addition of new language features, the more it is used for the development of independent and large-scale projects.

python的发展史:

Python was born in the hands of Guido. It can be said that Python developed from ABC and was mainly influenced by Modula-3 (another very beautiful and powerful language designed for small groups). And it combines the habits of Unix shell and C.

Python has become one of the most popular programming languages. Since 2004, the usage rate of python has increased linearly. Python 2 was released on October 16, 2000, and the stable version is Python 2.7. Python 3 was released on December 3, 2008 and is not fully compatible with Python 2. In January 2011, it was named the 2010 Language of the Year by the TIOBE Programming Language Ranking.

Due to the simplicity, readability and scalability of the Python language, there are more and more research institutions using Python for scientific computing abroad, and some well-known universities have adopted Python to teach programming courses. For example, Carnegie Mellon University's programming foundation, MIT's computer science and programming introduction are taught in Python language. Many open source scientific computing software packages provide Python call interfaces, such as the well-known computer vision library OpenCV, 3D visualization library VTK, and medical image processing library ITK. And Python-specific scientific computing extension libraries: NumPy, SciPy, and matplotlib, which provide Python with fast array processing, numerical operations, and drawing functions, respectively. Therefore, the development environment formed by the Python language and its many extended libraries is very suitable for engineering and scientific research personnel to process experimental data, make charts, and even develop scientific computing applications.

Python adheres to a clear and uniform style in its design, which makes Python an easy-to-read, easy-to-maintain, and widely-used language that is popular with a large number of users.

python的定位:

Python is a completely object-oriented language. Functions, modules, numbers, and strings are all objects. And it fully supports inheritance, overloading, derivation, and multiple inheritance, which is beneficial to enhance the reusability of source code. Python supports overloaded operators and dynamic typing. Compared with the traditional functional programming language like Lisp, Python only provides limited support for functional design. There are two standard libraries (functools, itertools) that provide the proven functional programming tools in Haskell and Standard ML.

Here are the steps to install the python runtime environment

1. On the official website of advanced python, click Downloads to download the latest version. The 64-bit version can be found at the bottom of the page, just click to install. As follows:

Insert picture description here

2. After the download is complete, open this page and you must remember to check the Add python 3.8 toPATH option, and then click Install NowInsert picture description here

After the installation is complete, close the page

Then let's try to run it:

** 点击win+R**The following page appears:
Insert picture description here

Then enter cmd to make the following page appear:

Insert picture description here

Finally, we enter python and press Enter to start writing the code, let’s try it with hello word:
Insert picture description here

This is a success.
Everyone wants to learn if they have anything. I heard that Python has a lot to do with artificial intelligence. I don’t know how you feel about Python.

Public number: programmer Bob

Like and follow~ Thank you

Guess you like

Origin blog.csdn.net/m0_46259251/article/details/104858510