The Zen of Python---1, what is a programming language

Source: Internet
Author: User


1. Programming and programming languages:

Python is a programming language, and the first thing you need to figure out is the following:

1, programming purposes:

The #计算机的发明 is to replace/liberate human beings with machines, and the purpose of programming is to pass the human thought process to a computer in a way that can be recognized by a computer, so that the computer can perform automatically like a human brain/computer.

2. What is a programming language:

#上面提及的能够被计算机所识别的表达方式即编程语言, language is the medium of communication, while programming language is the medium that the programmer communicates with the computer. In the programming world, computers are more like human slaves, and the purpose of human programming is to command slaves to work.

3. What is programming:

     #编程即程序员根据需求把自己的思想流程按照某种编程语言的语法风格编写下来, the result of the output is a file containing a bunch of characters. #强调: The program does not run before the same as ordinary files, only the program at run time, the file is written in the word characters have a specific grammatical meaning.


2. Programming language classification

The development of programming languages has experienced:

Machine language: Stand at machine angle, binary programming, direct operating hardware (010101010101)

Assembly language: Stand at the machine angle, abbreviated English logo instead of binary programming, essentially or operating hardware (mov ax,0301)

High-level language: Standing in the human perspective, speaking, that is, using human characters to write programs, shielding the direct hardware operation (print)


Because the high-level language is closer to human language, resulting in: it must be translated into a computer can read the binary, in order to be executed, according to the translation method can be divided into:

1, compiled type: (need compiler, equivalent to Google Translate), such as C, execute faster, debugging trouble

2, explanatory: (Need interpreter, equivalent to simultaneous interpretation): such as python, slow execution, debugging over

As the Soul painter, I still draw a few pictures:

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/06/DB/wKiom1m_feOycboLAABmmQZQmLw339.png-wh_500x0-wm_ 3-wmp_4-s_3449928026.png "title=" 111.png "alt=" Wkiom1m_feoycbolaabmmqzqmlw339.png-wh_50 "/>

Summarize:

Machine language:

#优点是最底层 with the fastest execution speed

#缺点是最复杂, lowest development efficiency

Assembly:

#优点是比较底层 with the fastest execution speed

#缺点是复杂, low development efficiency

Advanced Language:

#编译型

Language execution speed, not dependent on the language environment, cross-platform difference

#解释型

Cross-platform good, a code, used everywhere, disadvantage is due to similar simultaneous interpretation, slow execution, rely on the interpreter

Learning Difficulty: Machine languages > Assembly Language > Advanced languages

Execution efficiency: Machine language > Assembly language > Advanced languages

Development efficiency: Advanced Languages > Assembly Languages > Machine language


This article is from the "8614610" blog, please be sure to keep this source http://joker8614610.blog.51cto.com/11958098/1966392

The Zen of Python---1, what is a programming language

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.