1.1 Linux Installation Python
# wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz
# TAR-ZXVF Python-2.7.13.tgz
# CD Python-2.7.13
#./configure
# make
# make Install
1.2 Windows installation Python
A, click to download the installation package:Https://www.python.org/ftp/python/2.7.13/python-2.7.13.amd64.msi
b, click Install application, direct default installation (all the way Next)
C, configure environment variables: My Computer-Properties-Advanced system settings-environment variables-New or edit PATH environment variable-add Python installation path (C:\Python27)-Enter the python command in CMD to verify
1.3 Mac Installation Python
A, homebrew (brew install Python), this scheme is relatively simple, if the error can be preceded by the sudo test, so that the installation of Python may not be the latest version
b, download the installation from the official website, click Install package for default installation
The location of the python installed above the two installation methods is different, you can use which Python to view the installation location, you can enter Python in the terminal after installation to verify the installation success
1.4 Print function
After installing Python, we can try a simple output, the print function is a Python language output function , you can directly output strings, values, variables, and formatted output and so on
such as: print "Hello World" can be directly output Hello World string (Python2)
This article is from the "Dust FJ" blog, please be sure to keep this source http://fengjin.blog.51cto.com/9888513/1973040
Python installation settings and print functions