Automated operation and maintenance [python] ------ python Overview

1.python origin

Python is founder Dutchman Guido van Rossum (Guido van Rossum). During Christmas 1989, in order to pass the boring Christmas in Amsterdam, Guido,Determined to develop a new script interpreter, ABC language as an inheritance. Was chosen Python (boa constrictor meaning) as the name of the programming language, taken from the UK premiere of the 1970s TV comedy "Monty. Parsons's Flying Circus" (Monty Python's Flying Circus).

ABC is designed by Guido participated in a teaching language. Guido then my view,ABC This language is very beautiful and powerful, is specifically designed for non-professional programmers. But ABC did not succeed language, reason, Guido thought to be caused by its non-open. Guido determined to avoid this error in Python. At the same time, he wants to achieve something but never flashed implemented in the ABC.

In this way, Python in the hands of Guido was born. It can be said, Python is developed from ABC, mainly by Modula-3 (another very beautiful and powerful language, designed for small groups) affected. And a combination of C and Unix shell habits.

2.python interpreter

When the computer can only do 010101 binary language, we need to write program code words, interpreted language that the computer can understand.

2.1 compiler

Other languages ​​will be translated into machine language tool is called a compiler.

  • The compiler is allAll the code once compiled, saved as a file, and finally execute this file directly once

Such code execution speed onRelatively fast

2.2 Interpreter

  • Interpreter is the codeAn explanation, the implementation of a

Such speed isslower

Why should choose python 2.3

  • Delay little difference . So if we develop a website, using compiled languages will be 0.00001 seconds delay, the use of interpreted languages will be 0.001 seconds delay. Such a short delay, the user when in use, although a difference of 100 times, but users still useNot much difference

  • Cross-platform . One of the windows on theCompiled language can not use directly on linuxSo poor cross-platform capabilities of compiled languages. Waste time on the migration program. The interpretive language, we just need toInterpreter installed on the platform, You can move directly to the code used in the past.

3.python design philosophy

python is the only one to pay attention to language design philosophy

  • elegant. Source code clear, like articles as clear and smooth.
  • simple. The best one way to solve a thing.

4. Why python

  • Less code. Accomplish the same code with the python and java, java code amount is 1/5 of the python.Development of faster

  • Simple way. Will not let programmers distress, a problem with a way to do.

5.python features

It is a pythonFully object-oriented language

Object-oriented is a way of thinking, but also an art of programming.

When we solve the problem in two ways:,

  • Hands. Step by step to solve this problem.
  • Object-Oriented. To solve a problem, the first consideration is who should do, how to do things Whose responsibility, and finally to get things done on the property.
    To solve complex problems, then you can use a number of different objects, their duties together to achieve final completion.

have a pythonPowerful standard library

python community provides a large number of third-party libraries: not by official development python, python lovers by development.

6.python advantage

  • Simple, easy to learn.
  • Free, open source.
  • Object-oriented.
  • Rich and powerful library.
  • Scalability.
Released two original articles · won praise 0 · Views 84

Guess you like

Origin blog.csdn.net/mango_kid/article/details/104709640