I. Introduction of Python
Python is an object-oriented, explanatory scripting language that follows the GPL protocol. Simple syntax, strong community, rich library support. Also known as "glue language". It is easy to combine the modules written in other languages (major C + +).
Second, Python installation
Installing Python under Windows is relatively straightforward, just go to the Python website (www.python.org) to download it;
Python 2.7:https://www.python.org/ftp/python/2.7.14/python-2.7.14.msi
Python 3.6:https://www.python.org/ftp/python/3.6.3/python-3.6.3.exe
Double-click the installation, and always next. My default installation location is placed directly on the C drive.
After installation, if you want to start the Python interpreter directly in the CMD window, you also need to set the environment variable.
Linux itself comes with a Python interpreter. I'm using centos6.8, and my own Python interpreter is 2.6.
# View the Python version of your own release Python-vpython 2.6.6
If you want to install a higher version, to avoid affecting your own Python library files, you can use Pyenv to install multiple isolated versions of Python on one operating system. I have been working in this way to install and switch easily.
Because the Mac also comes with a Python interpreter. There are two ways to install.
Homebrew
Brew Install Python
A single command can be completed, but may not be the latest version of the brew source installed
2. Download the installation directly on the Python website, the version is more, you can also download the latest version
Download page: https://www.python.org/downloads/mac-osx/
Direct installation of the official website of the guide installation can be.
Third, HelloWorld
1. Start python through the Windows CMD window
print "Hello World"
You can see the window echoing "Hello World"
Or execute hello world through Python's IDE.
This article is from the "Ping's Blog" blog, please be sure to keep this source http://pingqiang.blog.51cto.com/12739492/1973050
Python Learning Summary-----python installation