(1) Introduction

Source: Internet
Author: User

(1) Introduction

1What isPython

Reference the official saying: Python is an easy-to-learn and powerful programming language. It has an efficient High-Level Data Structure and implements object-oriented programming through simple and effective methods. Python's elegant syntax and dynamic types, as well as its explanatory nature, make it an ideal language for scripting and Rapid Application Development in many fields on most platforms.

How can this passage be understood? We know that the purpose of any programming language is to write programs, and we use programs to make computers work. For example, play an mp3 player, play a chicken game, and so on. The computing brain (CPU) usually does not recognize the program we write directly. It only recognizes machine commands. Essentially, any programming language will eventually "translate" machine commands that can be executed by the CPU. Different from the "Translation" method, programming languages can be divided into two categories: Compilation and interpretation. Python is an interpreted language. (1)

There is a big gap between different programming languages, working in the same job and writing code. The image comprehension is that, when you do the same thing, you may need to write 1000 lines of code in C language, but 100 lines in C #, and 10 lines in Python. Therefore, Python is an advanced language. (2)

It should be noted that the low cost of code is the slow running speed. The C program runs for 1 second, the C # program may take 5 seconds, and the Python program may take 20 seconds. The Python program is executed through the Python interpreter, and the execution efficiency is relatively low.

 

2,PythonWhat can I do?

Python is everywhere in all walks of life. It can be used for websites (such as YouTube and Douban), image processing, scientific computing, crawlers, and even games, after learning Python well, you don't have to worry about its usefulness. Google is using it a lot.

Of course, Python also has its own poor performance, such as overlay systems, such as rocket control systems. What I say is not "no". Remember that many languages have their own strengths and weaknesses. Selecting the appropriate language is a concern for programmers.

 

 

3,PythonVersion

Python has two major versions: one is not 2.x, and the other is 3.x. These two versions are incompatible with each other. I will discuss the differences between them later. In fact, in 2012, Python2 will not be supported in 2015. In 2014, it will be changed to 2020, maybe 2. x indicates that the end is too early, but most third-party libraries for stream injection are compatible with 3.x. this series of tutorials is based on 3.6.

The first course of MIT's computer has been instilling two principles: computer programs are written to people and can run exactly; software design is actually a control of abstract complexity. This makes sense. Haha, my life is short. I use Python.

 

Note (1): the disadvantage of the interpreted type is that the Code cannot be encrypted.

Note (2): advanced programming languages generally provide a relatively complete basic code library for you to directly call. In addition to the built-in libraries, Python also has a large number of third-party libraries.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.