1, easy to learn: Python is a simple programming language. Reading a good Python program is just like reading English. Python's greatest advantage is the essence of pseudocode. When developing, we mainly focus on solving problems, not understanding the language itself.
2. Object-oriented: Python is both object-oriented programming and object-oriented programming. Compared with other mainstream languages C++ and Java, Python has realized object-oriented programming in a very powerful and simple way.
3. Portability: Python is an open source and can be ported to many platforms, such as Lnux, Windows, FreeBSD and Macintosh.
Solaris, OS/2, Amiga, AROS, AS/400, etc. Python can run well in it.
4. Description: Programs written in Python language can be run directly from the source code without compiling into binary code. Inside the computer, Python interpreter calls source code conversion as an intermediate form of bytecode, which can be directly translated and run.
5. Open source: Python language is open source. Simply put, you are free to publish a copy of this software, read the source code, modify it, and use it in the new free software.
6. High-level language: Python is a high-level programming language. When programming in Python, you don't need to consider the underlying details such as how to manage the memory used by the program.
7. Extensibility: If you want to run faster, but some algorithms are not public, this part of the program can be written in C language and then used in Python programs.
8. Rich libraries: Python has a rich and powerful standard library, which can help you deal with all kinds of work, including regular expressions, document generation, unit testing, threads, databases, web browsers, CGl, FTP, email and so on. These functions can be used, so Python language is very powerful.
9. Standardize code: When writing code in Python, use forced indentation to make the code readable.