Introduction to Python

Introduction to Python

Python was written by the famous "Uncle Turtle" Guido van Rossum during the Christmas period of 1989 to kill the boring Christmas. A programming language. An awesome person is an awesome person. In order to pass the boring time, he wrote such an awesome programming language.

Now, there are almost more than 600 programming languages ​​​​in the world, but there are only about 20 popular programming languages. I don’t know if you have heard of the TIOBE rankings.

This is the TOP20 programming language ranking list in February 2017:

5e6e2106dfb1de2fcc59c1eb1bdc0a7.png

There is also the TIOBE index trend of the Top 10 programming languages:

136750ae2129463c41edc96a01bd9f2.png

In general, these programming languages ​​have their own merits, but it is not difficult to see that Python has developed very fast in recent years, especially the recently popular machine learning and data analysis. python is developing rapidly.

Python is a high-level programming language. One of its characteristics is that it can be developed quickly. Python provides us with a very complete basic code library, covering a large number of contents such as network, files, GUI, database, text, etc. It is vividly called "built-in batteries (batteries included)". Developed in Python, many functions do not need to be written from scratch, just use ready-made ones. Moreover, Python can also develop websites. Many large websites are developed with Python, such as YouTube, Instagram, and domestic Douban. Many large companies, including Google, Yahoo, etc., and even NASA (National Aeronautics and Space Administration) use Python extensively.

Of course, any programming language has its advantages and disadvantages, and Python is no exception. So what are the disadvantages of Python?

The first disadvantage is that it runs slowly, which is very slow compared to C programs. Because Python is an interpreted language, your code will be translated line by line into machine code that the CPU can understand when executing. This The translation process is very time consuming and therefore slow. The C program is directly compiled into machine code that the CPU can execute before running, so it is very fast.

The second disadvantage is that the code cannot be encrypted. If you want to distribute your Python program, you actually distribute the source code. Compiled languages ​​such as JAVA and C do not have this problem, while interpreted languages ​​must release the source code.

Continuing Learning
||
submitReset Code