Python language that is easy to learn!

zhaozj2021-02-08  277

Python language that is easy to learn

I still remember that a few years ago said that when I said the program, the programming was a waste of human intelligence. I have a deep feeling at the time, and there is a lot of labor in the programming and quite trivial things. Of course, it seems that the professor now is a little extreme. After all, before the "programming machine" inventions, there is also a hard work of 10 million programmers.

The computer industry has passed the PC revolution, but also ushered in the network revolution. The next big revolution may be the intelligent revolution. However, before the arrival of the intelligent era, there are still many meaningful improvements. Some semi-automatic development tools in recent years have reduced labor intensity to some extent, and the improvement of program language has been carried out.

For programming, the programming language is not a key factor, but has an inexpricted impact on work efficiency. The test proves that some Script language (such as Python, Perl, etc.) and traditional languages ​​(such as C, C ) have a gap between development speeds.

Here I recommend Python language to everyone, I mainly talk about its two characteristics:

- easy to learn

I tell my own personal feelings. When I learned about the benefits of the Script language, I decided to learn a script language. What is good? Nature I chose the most famous Perl, I bought a "Perl 24-hour tutorial", but I didn't dare to say almost half a month. At some discomfort, I thought I thought of Python language I saw online, boring one day, I was typed in python.org with guessing, and now I am the main website of Python. After reading its profile, I was soon being attracted, I immediately downloaded the software, after three hours of trial, run some small procedures, I feel that I have basically I have already appreciated Python, it is easy to learn, the name is not intriguing. Below is a comparison of two language versions of the same function (declaration: I am not intended to devalue the value of Perl, and its popularity has proven yourself):

# ----- Python Version .------

Def PairWiseSum (List1, List2):

Result = []

For i in in (len (list1):

Result.Append (List1 [i] list2 [i])

Return RESULT

# ----- Perl Version. -------

Sub PairwiseSum {

MY ($ arg1, $ arg2) = @_;

@ List1 = @ $ arg1; @ list2 = @ $ arg2;

For ($ I = 0; $ i

Push (@Result, $ LIST1 [$ I] $ LIST2 [$ I]);

}

Return (/ @ result);

}

Python provides an interactive environment. I think this is one of the main reasons why it is easy to learn, just like the previous Basic and some database locale (such as DBASE, SQL, etc.), as a senior programmer said, software Complex is because thousands of things are piled together, the interactive environment can let us decompose the program, we can test each unclear language component, and this is also a good test platform.

- Another important feature of Python is easy to read

This is one of the designer's design goals, which is good for its syndrome, instead of brackets in the indentation format, the program is short! The use of symbols meets common sense and intuition, and less specially defined special symbols, which is also one of Python's easy learning. The easy reading of the program is very important. The bigger the program, the more important it is, unless you want to make yourself. If it is not so key to individuals, it can be said to be too important for a group and community. Whether it is development, maintenance or software quality, it will benefit from the quality, and it can promote communication, in this network. The value of the times will become more and more.

We are writing procedures, after all, not engage in encryption.

Reference website:

http://www.python.org

http://python123.yeah.net

Author: Chen Ge

2000.10.3

转载请注明原文地址:https://www.9cbs.com/read-2552.html

New Post(0)