Python basic syntax

Source: Internet
Author: User
Tags arithmetic

Read the catalogue:

Section I: Programming basics

1. Procedure:

A set of instructions that the computer can identify and execute

2. Modern computer structure system-von Neumann architecture

The CPU is composed of an arithmetic device and a controller

Arithmetic, complete a variety of arithmetic operations, logic operations, data transmission and other processing processing

Controller, execution of control program
Memory for memory programs and data, such as memory
Input device, data or program into the computer, example
such as keyboard, mouse
An output device that presents the results of data or program processing to the user,
such as displays, printers, etc.

3. Computer language:

The language of interaction between man and computer

4. Machine language:

A sequence of 0 and 1 of a certain number of digits, called a machine instruction, is a combination of machine instruction and machine language.

5, assembly language:

Use mnemonic notation instead of machine instructions, called assembly language, such as: Add a B puts the number of registers a and the number of register B together into register a

Assembly language written procedures need to be converted into machine instructions

Section II: Language classification

1. Low-level language:

Machine-oriented languages, including machine languages, assembly language

Different machines are not universal, different machines require different machine instructions or assembler programs.

2. Advanced Language:

Computer language close to natural and mathematical languages

High-level language handwriting to write the source program, by compiling the program to convert the source program into a machine instruction program

3. Differences between compiled and interpreted languages:

Compile language: Convert source code to target machine CPU instructions

Interpreted language: Translated into bytecode after interpretation, run on virtual machine, interpreter executes intermediate code

such as: C, C + + language source code needs to be compiled locally

Java, Pyhton, C # source code needs to be interpreted by the interpreter into an intermediate code (bytecode), run on the virtual machine

Section III: Development of high-level languages

1. Unstructured language:

Number or label, GOTO, subroutine can have multiple entrances and exits such as: Add a B puts the number of registers a and the number of register B added to register a

There are branches, loops

2. Structured language:

Any basic structure is only allowed to be the only inlet or outlet

Python basic syntax

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.