- 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
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
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