Douban development language: omnipotent python, development Language python

Source: Internet
Author: User

Douban development language: omnipotent python, development Language python

 

In the face of the eye-catching Pearl (Perl) light, the spirit snake (Python) is more powerful than ever before. It can run on a variety of OS such as MS-DOS, Amiga, BeOS, OS/2, VMS, QNX, etc. It is faster and better than Perl and VB, and it is more scalable than C and C ++; not only do they provide special effects and animation in super movies such as "Star Wars" and "Star Trek", but they also break into the control room of the Space Administration of the United States. For details about the truth, see the report.

For the Perl (PEARL) language, Internet developers can be said to have no one knows, no one knows; it runs fast, easy to operate, and can make users feel happy when using it. However, when it is not satisfactory: Its openness brings about its complexity. When it is used to deal with large projects, it is especially difficult to start.

Despite this, most Internet projects still rely on the Perl "hero.

But there is no choice. The latest recommended software is Python (spirit snake), which has a history of only 1/4 of Perl and has many similar features.

The name of Python comes from the famous funny Monty Python, which has many well-known actors and creates a screen image that is well known to all. So what is the image of Python in the Internet world?

Faster and better Python

Like Perl, Python is also an interpreted language. It adopts an object-oriented approach and its language structure is between C and Perl. Although it is regarded as a very high language, its built-in interpreter functions are very basic, and only a few functions, operators and keywords constitute the entire programming language. Its advantages are not only that, but also that it can be expanded through a series of modules. It is faster and better than Perl and VB statements, and more scalable than C and C ++ languages.

Similarly, Python first converts program statements into a series of byte code through an interpretation and compilation system, which is then processed by the Python virtual machine. Python is designed very effectively, mainly because of its large function library. Therefore, users do not need to enter the system environment or operating system, nor reference modules. Using Python programming, small programs are still small programs, and there is no need to spend too much time and cost.

In addition to its Core platform, Python can run on MS-DOS, Amiga, BeOS, OS/2, VMS, QNX, and many other operating systems. You can even run Python programs on your handheld computer. In the face of the eye-catching Pearl (Perl) light, the spirit snake (Python) is more powerful than ever before.

In addition to its Core platform, Python can run on MS-DOS, Amiga, BeOS, OS/2, VMS, QNX, and many other operating systems. You can even run Python programs on your handheld computer.

Python also has the following notable features:

Strong adaptability

Python can be supported by a series of platforms. It is compiled in a complete format that can run on Windows, MacOS, and its own Tk expansion platform, and can be used to develop user-friendly interfaces. On UNIX and other platforms, Python can be compiled by programmers as source code, or used together with other pre-compiled binary codes. Its strong adaptability makes it more suitable for cross-platform applications: it can be used on Mac and PC machines without any modification when it writes program segment 95% on UNIX platforms. Expand the support of Tk platform, and even allow GUI-based applications to switch freely on the above three platforms without the need for great flexibility, while maintaining a unified interface.

Because of this inherent cross-platform running capability, Python can also support expansion platforms of some platforms, thus simplifying and eliminating the need to adapt to other languages and environments. Similar to SunOS/Solaris tools with Sun audio devices and SGI versions with audio and video interfaces (including OpenGL), Windows Pytyon interpreters also have Visual C ++ class libraries and Windows Audio driver interfaces. In addition, it can communicate with COM objects.

Ultra-large functionality

Python is almost omnipotent. Its kernel is small, but it has enough basic blocks to design most of the application software. In some cases, the program language can be expanded and used with C, C ++, and Java languages, so there is no program that it cannot compile. The Python interpreter also has an extremely powerful complementary module library for language expansion, network communication, text processing, and rule expression matching.

Although Python is primarily characterized by hiding a lot of low-level complex work from programmers, it also supports low-level access to some operating systems by hooks, extended programs, and other functions. Because of this high and low parallel feature, Python can be regarded as a language of the same level as C and Visual Basic, or a language of another level between the two.

Extraordinary scalability

Because Python itself is written in C Language (some expansion platforms are written in C ++ language), and it uses open source code to actively expand the program itself. In addition, many modules of the language are supported by the C and C ++ interfaces, including some basic components such as network and DBM database access, and many other advanced tools such as Tk.

In addition, Python can be integrated into C or C ++ to provide programming interfaces for applications using Python. It is also based on its cross-language development support capabilities. You can also design applications using Python before sending them to the C-language environment without rewriting the program in the C language, because both languages can be used at the same time.

JPython is a Python interpreter fully written in Java, which means that any Python program can be connected to a Java object or an application using a Python object.

Extraordinary simplicity

After learning about the basic features of Python, it is easier to understand the content of the program language. The language kernel is small and concise in format and style. Since all other components and extensions use the same syntax structure, using Python programming will quickly generate results.

But this does not mean that the Python language is not complicated. Many of its expansion parts and internal databases must be carefully considered before they can be effectively used.

Powerful functionality

Python is particularly effective in dealing with a series of problems with such wide range of support and widely used features. The features are described as follows:

Calculator:

An extended program supported by Python is called NumPy, which can provide interfaces connected to many standard math libraries. The Python language also has infinite precision features and can handle 100-bit arithmetic operations independently.

Text processor:

Python can split, accumulate, and summarize any data. Its module can split the elements in the log file line, record and summarize the information based on the built-in data types, and finally output the information. Its rule expression library allows programmers to use emacs, Perl, and so on. This once again proves that Python is omnipotent. Some programmers used Python to compile a very complex SGML processing tool.

Convenient application development:

Python is clearly visible to programmers and can be quickly and effectively programmed with it. Its extensive module library provides interfaces for different protocols, tools, and libraries. This frees you from redevelopment.

Python also supports Tk tools, so you can complete an application in a few hours. It may take two to three days to use Perl, or even a few weeks to use C language.

Cross-platform development:

Python supports different platforms in a neutral manner. If the system you use contains different platforms, it would be better to develop applications using Python; this adaptability can also reserve the possibility of using other tools for the system. For Platform Users who frequently change, Python is an ideal choice.

When providing software services to end users, Python is also an alternative solution to avoid the time and cost of programming with different applications at the same time.

System Device

Python is designed to avoid the nuisance of low-level components in the operating system, but it can be implemented through corresponding tools and extensions if you need to actively enter these low-level components. Like the operating system, Python can provide the same functions, back up and expand them, and the backup and extended functions will increase all the adaptability and interface capabilities of Python.

Internet programming

Standard modules in Python can communicate with network slots at the initial and protocol level. For example, if you want to read emails from the POP server, the Python library module can. In addition, Python also supports XML, HTML, and CGI library files, so it can be used to parse user input requirements and produce optimal quality results through the network server.

Programmers can also compile modules for Apache, Unix, and Windows network servers with Python built-in interpreters. Based on the CGI program, you can easily execute Python statements without loading them separately.

Database Programming

There are countless expansion modules in Python that can be connected to common database systems such as Orcle, Informix, mySOL, and PostgreSql, as well as a tool called Gadfly that can independently provide a complete SQL environment. Python has powerful text and data processing capabilities and can be used as a connection between different databases. It is more advantageous than the summary and reporting tools attached to those databases. At the same time, because it supports different systems, the same interface can also be used to connect to any database. You can use Tk to establish a front-end on the support platform, and you can immediately obtain a high-speed cross-platform and independent database query tool.

Others

Python has a wide range of applications and almost no language that it does not adapt to. With its tiny kernel, rich functions, and diverse data, Python provides a good foundation for program construction. Combining the advantages of C and C ++, As long as appropriate structures and methods are adopted, the Python program can be expanded infinitely. In addition to a lot of notable advantages, Python also has disadvantages.

It is really not easy to list the disadvantages of Python. Python provides most of the functions in its expansion module, and fully shows how easy it is to add functions to it. Once used, it cannot solve the problem, then, you only need to use C or C ++ to re-compile an extension program.

People who criticize Python often do not mean that Python lacks a certain function, but does not understand this function. There is usually another complaint that Python lacks the support for rule expressions-but there are actually two modules that can be used to process rule expressions, one of which can be fully used to support the syntax of Perl. The processing of Rule expressions is not compiled into this language, but does not mean that it cannot be done.

For Perl, Rebol, and Java statements, Python has a small kernel. This reduces the execution time, because there is less code to be loaded during running, and this feature also makes it more adaptable.

Once you are familiar with the concise style of Python statements, its powerful advantages will be highlighted immediately. Compile the program with it.

Ideal user group for Python

It is suitable for different types of users to solve different types of problems. Most of the time, these problems are generally unknown because they have high confidentiality. Some large companies also use it for commercial development and demonstrate the development results.

Red Hat used Python and Tk to develop a visual interface for configuring and managing the operating system. The entire system can fully control the Linux operating system and automatically update the configuration file based on the user's choice.

Infoseek uses Python in its public search engine. The company also uses Python to customize its software so that end users can easily download the website content.

NASA also uses the Python programming language in many fields, most famous for its use of Python in the task control center for Task Planning; the use of Python in other aspects, such as the use of IT to calculate the location of the celestial body and the design of satellite paths, fully reflects the powerful computing capability of Python.

In the following scenarios: "Planet Station", "Abyss", "Star Trek", and "Indiana Jones) "The Industrial Light, which is used for stunt and animation production in super blockbusters, also uses Python to make commercial animations.

Many well-known websites are also built in this language, including Douban, Yidu cloud office, and all the products and services of Yidu: yidu document management system, Yidu project management system, Yidu file management system, and Yidu ISO document control management system.

Report

 


Which of the following languages can be used to develop social websites like Douban? Php? Python? Java? Ruby? Which language has the shortest development cycle?

The development cycle is related to the technologies mastered by developers. Of course, it is the shortest time to select a familiar technology.
We recommend using php or ruby for your column. They all have mature frameworks such as CI and Rails.

What is Python suitable for development?

Python is a glue language. Generally, you can write test code or interface programs.

The web is good, and the GUI is almost complete. python is mainly easy to use and rich in libraries. Apart from driver development, python is omnipotent and is suitable for everything.

However, web engineers or hackers generally use python because they require efficiency.

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.