Introduction to the historical development of the Python Programming Language

Source: Internet
Author: User

The Python programming language is now widely used in computer languages. But how does the Python programming language come from? How much do you know about its history? If you are interested in it, you may wish to browse the following articles, hoping to help you.

Python history

The founder of Python is Guido van rosum. During the Christmas Day of 1989, in Amsterdam, Guido was determined to develop a new script interpreter as an inheritance of the ABC language in order to make Christmas boring. The reason why the Python programming language is chosen) as the program name is because he is a fan of the Monty Python flying circus.

ABC is a teaching language designed by Guido. I have never heard of it ). In Guido's opinion, ABC is a very elegant and powerful language designed specifically for non-professional programmers. However, the ABC language is not successful. The reason is that Guido believes that it is not open. Guido is determined to avoid this error in Python. It is true that Python is well integrated with other languages such as C, C ++ and Java ). At the same time, he also wants to implement things that flash in ABC but have never been implemented.

In this case, Python was born in Guido. Thank you very much ). In fact, the first implementation is on a Mac machine. It can be said that Python was developed from ABC and was mainly influenced by another very beautiful and powerful language of Modula-3, designed for small groups. It also integrates the Unix Shell and C habits.

Where Python is available

Python can be used in many occasions. When you need a lot of dynamic adjustments, it is easy to use, powerful and flexible, Python can play a very good role.

In terms of text processing, the core functions of the Python programming language do not require any libraries to be extended.) It is easier to use and faster than other programming languages. This makes Python an efficient language for processing strings, including system management and CGI programming.

When Python is added with its standard extended libraries such as PIL, COM, Numeric, Oracledb, kjbuckets, tkinter, win32api, and so on) or a special extended library written by yourself or made using SWING, or by using ILU/COBRA/com), it can become a good "bonding language" or "guiding language ". A tool that integrates different programming environments and unrelated software functions.

For example, by combining Numeric and Oracledb with Python, you can perform System Analysis on your database data. Python is easy to use, convenient, and powerful in c/c ++ extensions, making it a very good "glue language ".

Many developers also widely use Python when writing graphical user interfaces. If you want to create a GUI program in Windows, Python is competent. You can go to wxPython.org to check that it is a Python extension library that can be used to implement cross-platform graphical programming. It supports windows and unix/linux. There are some demos on that website. You can take a look.

Python can be used as CGI. Some home pages provide CGI support for Python. There are still some games made using Python. If you want to know more about Python, you can go to SourceForge to find Python-related projects. There are many things on them.

  • Python programming language user experience
  • Differences between the Python programming language and other languages
  • Effect of using the Python programming language in Java
  • How to Implement modular modification in the Python Programming Language
  • How to save search engine results in the Python Programming Language

Running Mode

Python can be run in command line or interactive mode. It also has a graphical integration environment, which makes Python development quite convenient. Now, many visual programming software written in Python has been used to implement functions like Delphi.

Object-oriented

Python is a real object-oriented language. It even supports exception handling. If you have learned Java, you should be familiar with it. However, other scripting languages, such as PHP, do not seem to have any. This makes the compilation of the program clearer without many error checks.

Modules and packages

This is more like Java. For Java support, you can understand JPython. JPython is a Python programming language written in Java. It fully supports Java. In this environment, Python can freely use Java class libraries. Language extensions can use C, C ++, or Java to write new language modules, such as functions, for Python. It can be directly compiled with Python, or implemented using dynamic library loading.

Someone has also compiled a tool to automatically implement function Interface encapsulation for Python. This is SWIGSimplified Wrapper and Interface Generator), or it is called simple encapsulation and Interface Generator.

Interesting syntax

Guido believes that the syntax of the Python programming language is very elegant. One of them is that the block statement is not a {} pair commonly used in the C language, or another symbol pair, but uses the near representation! Interesting. In this regard, Guido's explanation is: first, using the near representation reduces visual confusion and shortens the program, this reduces the scope of attention to basic code units;

Secondly, it reduces the programmer's freedom and is more conducive to unified style, making it easier to read other people's programs. I think it is good. in C language, there are several kinds of braces behind the if statement. Different people like different things and it is better to unify them.

After the definition of each class or function, the first line can be a description statement without the annotator mark. For the statement followed by the block statement, it should be followed by a colon. A row of statements cannot be too long because there is no line terminator. If it is too long, use the line break (\). There are also some interesting examples, such as the following comparison processing, using the C language:

 
 
  1. if (2<a&&a<5)  

The above article provides a detailed introduction to the Python 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.