Python essay One: Computer Concepts and programming languages

Source: Internet
Author: User

Bentian, after a few weeks of Python learning. Deep experience of their own not. To learn python, learn to study regularly and share some knowledge about Python. While you're still young, fighting! A journey begins with a journey.

The following is a lecture note, please consultation fee!

The concept of computers

A computer is a device that operates data according to instructions.

Two features of a computer:

function : The operation of data, the performance of data calculation, input and output processing and storage of results;

Programmability : The operator's intentions are automatically, predictably, and accurately performed according to a series of instructions.

The development of computers is based on Moore's law and is represented by exponential methods.

Moore's Law is the most important predictor in the history of computer development , which was proposed by Gordon Moore, one of Intel's founders, in 1965.

Moore's law is a prediction law, whose main content is that the number of transistors that can be accommodated on a per-area integrated circuit is doubled every two years. (Cpu\gpu, memory, hard disk, electronic product prices, etc. all follow Moore's Law)

Programming languages are divided into the following ways, which are compiled and interpreted.

Source code: A computer program written in a programming language, human readable. Example: result = 2 + 3

The target code is also called machine language : Computers can be executed directly, human unreadable (except experts) for example: 1001001110

Compile

The process of converting the source code to the target code at once (the program that performs the compilation is called the compiler)

Explain

The process of translating source code into target code at the same time (the program that performs the interpretation process is called an interpreter)

Contrast compilation and interpretation

Compile: One-time translation, then no longer need source code (like English translation), through the target code to run the program.

Explanation: Source code participation is required each time the program runs (similar to real-time simultaneous interpreting)

Different ways of implementing the source code bring different ways to implement the program.

Programming languages are divided into two categories depending on how they are executed:

    1. Static languages use compiled execution programming languages such as: C\c++, Java language
    2. Scripting languages use interpreted programming languages such as Python, JavaScript, and PHP (which has been heard before by others, script scripts, now understand what's going on!). )

Static language and scripting language

The static language compiler generates the target code once. better optimization, faster program operation

The scripting language executes the program with the source code, which is more flexible to maintain (because the source code is always there.) )

Basic methods of writing programs

Ipo

I input inputs (there are many ways to input the program, from the file to get input, from the network to get input, console input, interactive interface input, internal parameter input, etc.) input is the beginning of the program.

O output (after a program has been calculated, the output of the program to the console is called the console output, the output of the graphical interface called graphics output, file output, network output, operating system variables output, etc.) output is the way the program shows the results of the operation.

P process processing (processing is the procedure of the program to calculate the input data to produce output results) processing method is referred to as the algorithm, it is the most important part of the program.

Computer programming

Programming embodies an abstract interactive relationship, automated implementation of the thinking pattern, referred to as computational thinking.

Summary

* The computer is functional and programmable.

* The computer is rapidly evolving in exponential fashion.

* Compile and interpret, static language and scripting language.

* Basic program Writing method IPO.

Python essay One: Computer Concepts and programming languages

Related Article

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.