Do you know what Python is? Advantages and Disadvantages of Python

青灯夜游
Release: 2018-10-20 16:03:10
forward
2591 people have browsed it

The content of this article is to understand what Python is? Advantages and Disadvantages of Python. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

What is Python?

Python is an interpreted, object-oriented, high-level programming language with dynamic semantics

Python is designed Adhering to a clear and consistent style makes Python an easy-to-read, easy-to-maintain, and widely-used language that is popular with a large number of users

Python Advantages of the language

(1) Simplicity: Python is very simple and very suitable for human reading. Compared with C language, there are no complex pointers. Easy for most beginners to learn

(2) Open source and free: Python is a FLOSS (free/source code software ), simply put, you are free to distribute copies of this software, read its source code, make changes to it, and use parts of it in new free software. FLOSS is based on the concept of a group sharing knowledge.

(3) Object-oriented: In object-oriented languages, programs are constructed from objects composed of data and functions. of. Compared to other major languages ​​such as C and Java, Python implements object-oriented programming in a very powerful and simple way.

(4) Rich library: The Python standard library is indeed huge. Python has definable third-party libraries that can be used. It can help you with various tasks, including regular expressions, document generation, unit testing, threads, databases, web browsers, CGI, FTP, email, XML, XML-RPC, HTML, WAV files, password systems, GUI (Graphical User Interface), Tk and other system-related operations. Remember, all of these features are available as long as Python is installed. This is called Python's "full-featured" philosophy. In addition to the standard library, there are many other high-quality libraries, such as wxPython, Twisted, and the Python imaging library, among others.

(5) Standard code: Python uses forced indentation to make the code more readable. Programs written in the Python language do not need to be compiled into binary code

(6) Portability: Due to its open source nature, Python It has been ported to many platforms (with changes to work on different platforms). These platforms include Linux, Windows, FreeBSD, Macintosh, Solaris, OS/2, Amiga, AROS, AS/400, BeOS, OS/390, z/OS, Palm OS, QNX, VMS, Psion, Acom RISC OS, VxWorks, PlayStation, Sharp Zaurus, Windows CE, PocketPC, Symbian and Google's android platform based on Linux.

(7) Scalability and embeddability. If you need a critical piece of your code to run faster or want certain algorithms to be kept private, you can write parts of your program in C or C++ and use them in your Python program. You can embed Python into your C/C++ programs to provide scripting functionality to your program users.

Disadvantages of Python language

(1) Run Slower speed: This is mainly the comparison between C language and C, but this difference is not obvious to the user when running on the machine.

(2) Unique statement writing: Those who have learned Java and C language will know a lot when learning conditional statements Use parentheses, while loop statements in Python mainly use tab key indentation. Beginners tend to forget

Personal summary

The learning of any programming language requires a lot of code practice and knowledge supplement. During the learning process, active thinking and constant reflection are required. Read relevant books and learn to ask for advice humbly and not be ashamed to ask.

The above is the entire content of this article, I hope it will be helpful to everyone's study. For more related video tutorials, please visit: Python video tutorial, Python3 video tutorial, bootstrap video tutorial!

The above is the detailed content of Do you know what Python is? Advantages and Disadvantages of Python. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template