Python is a high-level programming language for interpreting, object-oriented, and dynamic data types.
Python was invented by Guido van Rossum at the end of 1989, and the first public release was released in 1991.
Like the Perl language, the Python source code also follows the GPL (GNU general public License) protocol.
This address can learn Python's learning documentation. http://www.runoob.com/python/python-intro.html
Comparison of Python languages:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/6F/wKiom1Yc4KfBqfuUAACt9t4L9YA295.jpg "style=" float: none; "title=" Image.png "alt=" Wkiom1yc4kfbqfuuaact9t4l9ya295.jpg "/>
Python does not fit in the field:
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m00/74/6f/wkiom1yc4kejm5wtaacjbhsg8aq206.jpg "title=" Image1.png "style=" Float:none; "alt=" Wkiom1yc4kejm5wtaacjbhsg8aq206.jpg "/>
Version comparison of Python:
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m00/74/6b/wkiol1yc4mbbcszoaab5gz55goy475.jpg "title=" Image2.png "style=" Float:none; "alt=" Wkiol1yc4mbbcszoaab5gz55goy475.jpg "/>
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m01/74/6f/wkiom1yc4kjbdvw9aabusngi_ii179.jpg "title=" Image3.png "style=" Float:none; "alt=" Wkiom1yc4kjbdvw9aabusngi_ii179.jpg "/>
Let's look at the version of my system below.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/74/6B/wKioL1Yc4MazZ1URAABWr4aNuOU013.jpg "title=" Image4.png "style=" Float:none; "alt=" wkiol1yc4mazz1uraabwr4anuou013.jpg "/>
Here you can install the Python method with the Yum source.
Yum install-y python
If the system does not own or the system needs to be upgraded, then we can download:
wget https://www.python.org/ftp/python/3.1/Python-3.1.tar.bz2
1. Download OK, unzip the installation.
#mkdir/user/local/python-3.1 python
# tar-jxvf python-3.1.tar.bz2-c/usr/local/python-3.1 && cd/usr/local/python-3.1 &&/config Ure--prefix=/usr/local/python/&& make && make install
This step is extracted to the/usr/local/python-3.1, switch to the Python unpacking package, and compile the installation. #/usr/local/python
2. Make a software connection.
# ln-s/usr/local/python/bin/python3.1/usr/bin/python3.1
Exit here can use Quit () or exit ()
Here the exit command must have parentheses.
With help, you can see a lot of help information.
--------------------------------------------------------------------------------------------------------------- ---------------
Here, let's write a simple Python script.
Vim hello.py #这里是已py结尾的是python的意思, if it is the shell end of Sh.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m02/74/6f/wkiom1yc4kidfxt9aabhmgqjkko741.jpg "title=" Image5.png "style=" Float:none; "alt=" Wkiom1yc4kidfxt9aabhmgqjkko741.jpg "/>
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
The result of the execution here is also the result that we write, very easy to understand. 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/74/6B/wKioL1Yc4MfiASnSAABIgegJ4Cg501.jpg "title=" Image6.png "style=" Float:none; "alt=" wkiol1yc4mfiasnsaabigegj4cg501.jpg "/>
This article is from the Linux Security Advisor blog, so be sure to keep this source http://chengyangyang.blog.51cto.com/9473151/1702622
CentOS 7.1 Detailed Installation Python notes