Python basic in... LOGIN
Python basic introductory tutorial
author:php.cn update time:2022-04-18 16:14:50

Introduction to Python


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

Python is designed to be highly readable. Compared with other languages, it often uses English keywords and some punctuation marks in other languages. It has a more distinctive grammatical structure than other languages.

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

  • Python is an interactive language:This means that you can write the program you write in a Python prompt and execute it interactively directly.

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

  • Python is a Beginner’s Language:Python is a great language for beginning programmers, supporting a wide range of application development, from simple From word processing to WWW browsers to games.



Python development history

Python was developed by Guido van Rossum at the National Institute of Mathematics and Computing in the Netherlands in the late 1980s and early 1990s. Designed by scientific research institute.

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

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

Now Python is maintained by a core development team, with Guido van Rossum still occupying a crucial role in guiding its progress.



Python Features

  • #1. Easy to learn:Python has relatively few keywords, simple structure, and A well-defined syntax is easier to learn.

  • #2. Easy to read:Python code is more clearly defined.

  • #3. Easy to maintain:The success of Python is that its source code is quite easy to maintain.

  • 4. An extensive standard library:One of the biggest advantages of Python is its rich library, cross-platform, and very compatible with UNIX, Windows and Macintosh good.

  • 5. Interactive mode:Interactive mode is supported, you can enter the language to execute the code from the terminal and get the results, interactive testing and debugging code snippets.

  • 6. Portable:Based on its open source nature, Python has been ported (that is, made to work) to many platforms.

  • 7. Extensible:If you need a critical piece of code that runs quickly, or want to write some algorithms that you don’t want to open, you can use C Or complete that part of the program in C++ and then call it from your Python program.

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

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

  • 10. Embeddable:You can embed Python into a C/C++ program to give users of your program the ability to "script".

php.cn