The pros and cons of a number Python programming language python development

Source: Internet
Author: User
Tags ruby on rails

Python's positioning is "elegant", "clear", "simple", so the Python program looks always easy to understand, beginners learn python, not only easy to get started, but also in the future, you can write those very very complex programs.

The advantages of the Python language

⑴ as a beginner python trained white, Python is very simple, very suitable for human reading. Reading a good Python program feels like reading English, even though the requirements of this English are very strict! This pseudo-code nature of Python is one of its greatest advantages. It allows you to focus on solving problems rather than figuring out the language itself.

⑵ easy to learn. Although Python is written in C, it rejects the very complex pointers in C and simplifies the syntax of Python.

⑶python is one of floss (free/open source software). Simply put, you are free to publish a copy of the software, read its source code, make changes to it, and use it as part of the new free software. Python wants to see a better person create and often improve.

⑷ portability ———— because of its open source nature, Python has been ported on many platforms (modified to make it work on different platforms). If you are careful to avoid using system-dependent features, all your Python programs can run without modification on any of the platforms listed below. 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 and even PocketPC, Symbian, and Google Linux-based Android platforms!

⑸ inside the computer, the Python interpreter translates the source code into an intermediate form called bytecode, and then translates it into the machine language used by the computer and runs it. In fact, because you no longer need to worry about how to compile the program, how to make sure that the connection is reprinted with the correct library, and so on, all this makes using Python easier. Since you only need to copy your Python program to another computer, it will work, which makes your Python program easier to migrate.

⑹python supports both process-oriented function programming and object-oriented abstract programming. In a process-oriented language, a program is built from a procedure or simply a function of reusable code. In object-oriented languages, programs are built from objects that combine data and functionality. Python implements object-oriented programming in a very powerful and simple way, compared to other major languages such as C + + and Java.

⑺ scalability and embeddable. If you need a piece of your critical code to run faster or you want some algorithms to be private, you can write some of your programs in C or C + + and then use them in your Python program. You can embed python in your C/C + + program to provide scripting functionality to your program users.

⑻ a rich library. The Python standard library is really huge. Python has a definable third-party library that can be used. It can help you with all kinds of work, including regular expressions, document generation, unit tests, threads, databases, Web browsers, CGI, FTP, e-mail, XML, XML-RPC, HTML, WAV files, cryptography systems, GUI (graphical user interface), TK, and other system-related operations. Remember that all of these features are available as long as Python is installed. This is called Python's "fully functional" concept. In addition to the standard library, there are many other high-quality libraries, such as Wxpython, twisted, and Python image libraries, and so on.

⑼python is indeed a very exciting and powerful language. It combines the high performance with the simple and interesting features that make the program easy to write.

The code for the ⑽ specification. Python uses forced indentation to make the code extremely readable.

The disadvantages of the Python language

Many times you cannot write a program as a line, such as import sys;for I in Sys.path:print i. Perl and awk do not have this limitation, it is easier to complete a simple program under the shell, do not need to like Python, the program must be written to a. py file. (This is not a limitation for many users.)

⑴ run speed, with speed requirements, use C + + to rewrite the key part of it. However, for the user, the speed of the machine can be ignored. Because the user does not feel the difference of speed at all.

⑵ is both an advantage and a disadvantage, Python's open source makes the Python language can not be encrypted, but the current domestic market purely by writing software to sell customers less and fewer, web sites and mobile applications do not need to give customers source code, so this problem is the problem. But over time, many domestic software companies, especially game companies, also began to scale using him.

There are too many options for the ⑶ architecture (there is no official. NET architecture like C #, nor is the relative concentration of the architecture developed as Ruby because of its short history. Ruby on Rails architecture to develop small and medium web programs invincible. But it also shows from another side that Python is excellent, attracts more people and has more projects.


The pros and cons of a number Python programming language python development

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.