Introduction to Python
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 in other languages have a more distinctive grammatical structure than other languages.
Python is an interpreted language: This means that there is no compilation 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 the code is encapsulated in an object.
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 features
1. Easy to learn: Python has relatively few keywords, simple structure, and a clearly defined grammar, making it easier to learn.
2. Easy to read: Python code definition is clearer.
3. Easy to maintain: Python's success lies in its source code is fairly easy to maintain.
4. An extensive standard library: One of the biggest advantages of Python is its rich library, cross-platform, and compatible with UNIX, Windows and Macintosh.
5. Interactive mode: The interactive mode is supported, you can enter the execution code from the terminal and get the language of the result, interactive testing and debugging code snippets.
6. Portability: Based on its open source characteristics, Python has been ported (that is, to make it work) to many platforms.
7. Extensible: 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.
8. Database: Python provides interfaces to all major commercial databases.
9. GUI programming: Python supports GUI that can be created and ported to many system calls.
10. Embeddable: You can embed Python into a C/C++ program, allowing users of your program to have the ability to "script".