I. Introduction to Python

Source: Internet
Author: User

Introduction to Python

The founder of Python is Guido van Rossum (Guido van Rossum). 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.

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

Install Python

windows:  

 HTTPS://WWW.PYTHON.ORG/DOWNLOADS/2, install 
default installation path: \ n python273, configure environment variable "right-click Computer"-"attribute"-"Advanced system Settings"-"Advanced"-"Environment variable"-"in the Second content box find a row of the variable named path, double-click"-"Python installation directory appended to the variable value , use, or divide "such as: the original value; C:\python27, remember that there is a semicolon in front

Linux:

 View default Python version python-v 1, install gcc for compiling python source yum install GCC2, download source package , HTTPS://WWW.PYTHON.ORG/FTP/PYTHON/3, unzip and enter the source file 4, compile and install./configure make all make install5, view version/usr/local/bin/ PYTHON2.7-V6, modify the default Python version mv/usr/bin/python/usr/bin/python2.6 ln-s/usr/local/bin/python2.7/usr/bin/python 7, prevent Yum performs an exception, modifies the Python version Vi/usr/bin/yum used by Yum to modify the head #!/usr/bin/python to #!/usr/bin/python2.6 

Update python

Windows:

1 1. Unloading load can be

Linux:

Linux Yum relies on its own python, to prevent errors, the update here is actually to install a Python

1 View default Python version 2 Python-v3   4 1, install GCC for compiling python source code 5     Yum install gc6 2, download the source package, https://www.python.org/ftp/python/ 7 3, unzip and enter the source file 8 4, compile and install 9     ./configure10 make     all11 make     install12 5, view version     /usr/local/bin/python2.7- V14 6, modify the default Python version     mv/usr/bin/python/usr/bin/python2.616     ln-s/usr/local/bin/python2.7/usr/bin/ Python17 7, to prevent Yum execution exception, modify the Python version used by Yum vi/usr/bin/yum19 change the     head #!/usr/bin/python to #!/usr/bin/python2.6

Windows System 32-bit and 64-bit

Here, the 32-bit and 64-bit refers to the CPU's maximum support range for memory addressing.

32 bits for 2**32=4294967296

65 bits are reserved for some bits, and the motherboard is limited, the maximum supported is 160T

I. Introduction to Python

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.