Python's Road first article

Source: Internet
Author: User
Tags lua web2py

1. Introduction to Python language

Python is an object-oriented, high-level language.

Know a high-level language, then you may have heard of low-level.

Computer language classification

High-level languages: For example: C, C + +, Java, PHP, etc.

Low-level language: It is also a machine language or assembly.

Generally speaking, a computer can only run low-level language programs.

Programs written in high-level languages must be processed before they can be run on the computer. But it also takes a bit of event conversion processing, which is a minor flaw in high-level languages.

But the advantages of a high-level language are immense:

1, high-level language programming easy to implement

2. High-level languages write programs with less time, shorter programs, and easier reading.

3, high-level language portability, almost can be run on any platform, the program needs only slightly modified or not modified.

2. The origin of Python language

During the Christmas of 1989, Guido van Rossum to spend time in Amsterdam, determined to develop a new script interpreter, as an inheritance of the ABC language. Python was chosen as the name of the program because he was a fan of the BBC TV show-Monty Python's Flying Circus (Monty Python's Flying Circus).

3. What Python can do

Web Program

Python is often used for web development. For example, with the Mod_wsgi module, Apache can run web programs written in Python. Gunicorn, written in the Python language, is also capable of running web programs written in the Python language as a Web server. Python defines the WSGI (Web server Gateway Interface) standard application interface to coordinate the communication between the HTTP server and the Python-based Web program. Some web frameworks, such as Django, Pyramid, TurboGears, Tornado, Web2py, Zope, and flask, can make it easy for programmers to develop and manage complex web programs.

Python's support for various network protocols is perfect and is often used to write server software and network worms. The third-party library twisted supports asynchronous online authoring programs and most standard network protocols (including clients and servers), and provides a variety of tools that are widely used to write high-performance server software. Another gevent, the popular third-party library, is also capable of supporting high-performance, highly concurrent network development.

GUI Development

Python itself contains a tkinter library that supports the development of a simple GUI (graphical User Interface). But more and more Python programmers choose GUI packages such as Wxpython or PYQT to develop cross-platform desktop software. Desktop software that is developed with them runs fast and matches the user's desktop environment. You can also publish a program as a standalone installation package through Pyinstaller.

Operating system

In many operating systems, Python is the standard system component. Most Linux distributions, as well as NetBSD, OpenBSD, and Mac OS X, are integrated with Python, which can be run directly under the terminal. Some installers for Linux distributions are written in Python language, such as Ubuntu's ubiquity installer, Red Hat Linux, and Fedora's Anaconda installer. Gentoo Linux uses Python to write its Portage package management system. The Python standard library contains several libraries that invoke the functionality of the job system. By Pywin32 This third-party package, Python has access to Windows COM services and other Windows APIs. Use the Ironpython,python program to directly invoke the. Net Framework.

Other

NumPy, SciPy, matplotlib can allow Python programmers to write scientific computing programs. Some companies use scons instead of make to build C + + programs.

Many games use C + + to write high-performance modules such as graphical display, while using Python or Lua to write game logic, servers. Compared to Python,lua, the functionality is simpler and smaller, while Python supports more features and data types. Many games, such as Eve Online, use Python to handle a variety of logic in the game.

YouTube, Google, Yahoo!, and NASA all use Python in their own way. Most of the software for the Sugar project is written using Python

So his range of applications is roughly divided into:

Data analysis

System programming

Component integration

Network Services

Image processing

Numerical calculation and scientific calculation

Web Program

Python is often used for web development. For example, with the Mod_wsgi module, Apache can run web programs written in Python. Gunicorn, written in the Python language, is also capable of running web programs written in the Python language as a Web server. Python defines the WSGI (Web server Gateway Interface) standard application interface to coordinate the communication between the HTTP server and the Python-based Web program. Some web frameworks, such as Django, Pyramid, TurboGears, Tornado, Web2py, Zope, and flask, can make it easy for programmers to develop and manage complex web programs.

Python's support for various network protocols is perfect and is often used to write server software and network worms. The third-party library twisted supports asynchronous online authoring programs and most standard network protocols (including clients and servers), and provides a variety of tools that are widely used to write high-performance server software. Another gevent, the popular third-party library, is also capable of supporting high-performance, highly concurrent network development.

GUI Development

Python itself contains a tkinter library that supports the development of a simple GUI (graphical User Interface). But more and more Python programmers choose GUI packages such as Wxpython or PYQT to develop cross-platform desktop software. Desktop software that is developed with them runs fast and matches the user's desktop environment. You can also publish a program as a standalone installation package through Pyinstaller.

Operating system

In many operating systems, Python is the standard system component. Most Linux distributions, as well as NetBSD, OpenBSD, and Mac OS X, are integrated with Python, which can be run directly under the terminal. Some installers for Linux distributions are written in Python language, such as Ubuntu's ubiquity installer, Red Hat Linux, and Fedora's Anaconda installer. Gentoo Linux uses Python to write its Portage package management system. The Python standard library contains several libraries that invoke the functionality of the job system. By Pywin32 This third-party package, Python has access to Windows COM services and other Windows APIs. Use the Ironpython,python program to directly invoke the. Net Framework.

Other

NumPy, SciPy, matplotlib can allow Python programmers to write scientific computing programs. Some companies use scons instead of make to build C + + programs.

Many games use C + + to write high-performance modules such as graphical display, while using Python or Lua to write game logic, servers. Compared to Python,lua, the functionality is simpler and smaller, while Python supports more features and data types. Many games, such as Eve Online, use Python to handle a variety of logic in the game.

YouTube, Google, Yahoo!, and NASA all use Python in their own way. Most of the software for the Sugar project is written using Python

So his range of applications is roughly divided into:

Data analysis

System programming

Component integration

Network Services

Image processing

Numerical calculation and scientific calculation

4. Editors and interpreters

There are two programs that can handle high-level languages and convert them to low-level languages: interpreters and editors.

The interpreter reads into a high-level language program and executes it.

Python's Road first 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.