Hackerthink logo

THE MOST POPULAR SITE FOR DEVELOPERS.

Python Introduction

Python is a high-level scripting language that combines interpretation, compilation, interactivity and object-oriented.

Python is designed to be very readable. Compared with other languages, English keywords are often used, and some punctuation marks of other languages ​​have a more distinctive grammatical structure than other languages.

  • Python is an interpreted language: this means that there is no compilation part in the development process. Similar to PHP and Perl languages.

  • Python is an interactive language: this means that you can execute code directly after a Python prompt >>> .

  • Python is an object-oriented language: this means that Python supports an object-oriented style or programming technique where code is encapsulated in objects.

  • Python is a language for beginners: Python is a great language for junior programmers. It supports a wide range of application development, from simple word processing to WWW browsers to games.

Python history

Python was designed by Guido van Rossum at the Dutch National Institute of Mathematics and Computer Science in the late 1980s and early 1990s.

Python itself is also developed by many other languages, including ABC, Modula-3, C, C++, Algol-68, SmallTalk, Unix shell and other scripting languages, etc.

Like the Perl language, the Python source code also follows the GPL (GNU General Public License) agreement.

Python is now maintained by a core development team, and Guido van Rossum still plays a vital role in guiding its progress.

Python 2.7 is determined to be the last Python 2.x version. In addition to supporting Python 2.x syntax, it also supports part of Python 3.1 syntax.

Python features

  • Easy to learn: Python has relatively few keywords, simple structure, and a clearly defined grammar, making it easier to learn.

  • Easy to read: Python code definition is clearer.

  • Easy to maintain: Python’s success lies in its source code is fairly easy to maintain.

  • A wide range of standard libraries: One of the biggest advantages of Python is its rich library, cross-platform, and compatible with UNIX, Windows and Macintosh.

  • Interactive mode: The interactive mode is supported, you can enter the language to execute the code and get the result from the terminal, interactive test and debug code fragments.

  • Portability: Based on its open source characteristics, Python has been ported (that is, to make it work) to many platforms.

  • Scalable: If you need a key code that runs fast, or you want to write some algorithms that you don’t want to open, you can use C or C++ to complete that part of the program, and then call it from your Python program.

  • Database: Python provides interfaces to all major commercial databases.

  • GUI programming: Python supports GUI that can be created and ported to many system calls.

  • Embeddable: You can embed Python into C/C++ programs, allowing users of your programs to obtain the ability to “script”.