The first lesson of Python learning--initial Python

Source: Internet
Author: User

    • Python's past and present

What is Python

Python is a multi-purpose programming language, often playing the role of scripting language

python Popular causes

Software Quality

Increase developer productivity (Python code size is C/java 1/3-1/5)

Portability of programs

Support for standard libraries

Component integration

Enjoy the easy one

Types of Python

Cpython Jython IronPython pypy (Special) Rubypython,brython

     

Python Technical Benefits
Object oriented
Free
Portable
Powerful features
Dynamic type
Automatic memory Management ("garbage collection")
Built-in object types and tools
Libraries and third-party tools
Python drawbacks
Unlike regular programming languages such as C and C + +, they run so fast

    • Python interpreter

A program that lets other programs run, or that can be interpreted as a software that interprets code or code files
Function: The software logic layer between the code and the machine's computer hardware

    • Python environment

Install Python
Windows:
1. Download the installation package http://www.python.org/downloads/
2. Install the default installation path c:\python27
3. Configure Environment variables
"Right-click Computer---" Properties---"Advanced system settings"---"Advanced"---"Environment variable---" In the second content box, locate a row in the variable named path, double-click the
---"Python installation directory appended to variable value, split"
such as: the original value; c:\python27, remember that there is a semicolon in front, and;
Linux:
Without installation, the original Python environment

such as: #/$python switch to python interactive hint mode, Python is version 2.0
#/$python 3 Switch to python3.0 version

Reminders: Linux Yum relies on its own python, to prevent errors, this update is to install a python
1. Install gcc for compiling python source yum install gcc
2. Download the source package https://www.python.org/ftp/python/
3. Unzip and enter the source file
4. Compile and install./configure Makeall make Install
5. View version/usr/local/bin/python2.7-v

The first lesson of Python learning--initial 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.