Describes the operability of the Python Programming Language

Source: Internet
Author: User

Why did the Python programming language become a leader in programming languages so quickly? This is a good question. It depends on the advantages of the Python programming language. Only in this way can we better understand this programming language. After reading the article, you will be inspired.

Simple ---- the Python programming language is a language that represents the simple ideology. Reading a good Python program is like reading English, although the English requirements are very strict! The essence of this pseudo-code in Python is one of its biggest advantages. It enables you to focus on solving problems rather than understanding the language itself.

Easy to learn ---- as you will see soon, Python is extremely easy to use. As mentioned above, Python has extremely simple syntax.

Free and open-source ---- Python is one of FLOSS free/open source software. Simply put, you can freely publish copies of the software, read its source code, make changes to it, and use part of it in new free software. FLOSS is based on the concept of a group sharing knowledge. This is why the Python programming language is so good that a group of people who want to see a better Python have created and often improved.

High-level Language-when writing a program in Python, you do not need to consider the underlying details such as how to manage the memory used by your program.

Portability-because of its open source nature, the Python programming language has been transplanted on many platforms and changed to enable it to work on different platforms ). If you are careful not to use system-dependent features, all your Python programs can run on any of the following platforms without modification. 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 and Symbian!

  • Python programming language with simplified read flexibility
  • Measure the test taker's knowledge about the Python programming language in a short time.
  • Introduction to the history of the Python Programming Language
  • Describes the Python programming language.
  • Performance Comparison Between the Python programming language and Java

Explanatory ---- this requires some explanation. A program written in a compiled language such as C or C ++ can be converted from the source file C or C ++ to the binary code of the language used by your computer, 0 and 1 ). This process is completed by the compiler and different tags and options. When you run your program, the connection/reprinter software copies your program from the hard disk to the memory and runs it. Programs Written in Python do not need to be compiled into binary code. You can run the program directly from the source code. Inside the computer, the Python interpreter converts 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 ensure that the correct library is reprinted, and so on, all of this makes Python easier to use. Because you only need to copy your Python program to another computer, it can work, which makes your Python program easier to transplant.

Object-oriented-the Python programming language supports both process-oriented and object-oriented programming. In a "process-oriented" language, a program is built by a process or a function that is only reusable code. In the "Object-Oriented" language, a program is built by combining data and functions. Compared with other major languages such as C ++ and Java, Python implements object-oriented programming in a very powerful and simple way.

Scalability-if you need a piece of key code to run faster or want some algorithms not to be made public, you can write some of your programs in C or C ++, then use them in your Python program.

Embedding-you can embed the Python programming language into your C/C ++ program to provide script functions to your program users.

A wide range of libraries-the Python standard library is indeed huge. It can help you deal with various jobs, including regular expressions, document generation, unit testing, threads, databases, web browsers, CGI, FTP, e-mail, XML, XML-RPC, HTML, WAV Files, password systems, and GUI graphics user Interface), Tk, and other system-related operations. Remember, all these functions are available as long as Python is installed. This is called Python's "full functionality" concept. In addition to the standard library, there are many other high-quality libraries, such as wxPython, Twisted, and Python image libraries.

Summary-the Python programming language is indeed a wonderful and powerful language. It combines high performance with features that make programming simple and interesting.

1. Forced indentation may not be called a limitation, but it uses indentation to differentiate the relationship between statements, which is still confusing for many beginners. Even experienced Python programmers may fall into a trap. The most common case is that the combination of tabs and spaces will lead to errors, which cannot be separated by the naked eye.

2. A single-line statement and command line output cannot be connected to a program as a single line, for example, import sys; for I in sys. path: print I. Perl and awk do not have this restriction, so it is easier to complete simple programs in shell. Like Python, programs must be written into a. py file. This is not a limit for many users)

No. 1 running speed is faster than java, but it cannot be compared with the language to be compiled ). If you have a speed requirement, use C ++ to rewrite the key part.

No. 2 the Chinese market is relatively small. It is mainly developed using the python programming language in China. Currently, only some web2.0 companies are available ). However, over time, many domestic software companies, especially game companies, have begun to use it on a large scale.

No. 3 There are only a handful of Chinese python documents with poor Chinese materials ). Some excellent textbooks have been translated, but there are many entry-level textbooks. The advanced content can only be viewed in the English version.

There are too many architectures in No. 4. There is no official. net architecture like C #, nor is there a relatively concentrated framework development like ruby due to its short history. Ruby on Rails architecture development small and medium web programs are invincible ). However, it also shows from another perspective that the python programming language is excellent, attracting many talents and many projects.

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.