Python-install Python on Windows and Python on Windows
First, let's take a look at the advantages of Python:
Python provides a well-developed base code library covering a large number of contents such as networks, files, guis, databases, and texts. It is vividly called "batteries integrated ded )". Developed in Python, many functions do not have to be written from scratch and can be directly used as ready-made.
In addition to the built-in libraries, Python also has a large number of third-party libraries, which are developed by others for your direct use. Of course, if the code you develop is well encapsulated, it can also be used as a third-party library for others.
Many large websites are developed using Python, such as YouTube, Instagram, and Douban in China. Many large companies, including Google, Yahoo, and even NASA (NASA), use Python extensively.
In general, the philosophy of Python is simple and elegant. Try to write code that is easy to understand and write as few code as possible.
What types of applications is Python suitable?
The first choice is network applications, including websites and background services;
Second, there are many gadgets that are commonly needed, including script tasks required by the system administrator;
In addition, programs developed in other languages are encapsulated for ease of use.
Python has the following Disadvantages:
The first drawback is that the running speed is slow, which is very slow compared with the C program. Because Python is an interpreted language, your code will be translated into a machine code that the CPU can understand in one line during execution, this translation process is very time-consuming, so it is very slow. The C program is directly compiled into a machine code that can be executed by the CPU before running, so it is very fast.
The second disadvantage is that the Code cannot be encrypted. Release the hosts file. It is impossible to roll out the C code from the machine code. Therefore, all compiled languages do not have this problem, while the interpreted language must publish the source code.
Install Python on windows:
First, download version 2.7.13 from Python official website python.org,
Select next until the installation is completed. When you select to install a component, select all components:
Click finish to complete the installation.
Next, set the environment variables:
Right-click the computer, select Properties, open advanced system settings, and click environment variables:
Select Path:
Put the installation path of Python below. Note that the installation path should be separated by semicolons:
Click OK.
Open the Command Prompt window and enter Python. The following figure shows that the installation is successful:
When the prompt ">>>" is displayed, it indicates that we are already in the Python interactive environment. You can enter any Python code and press enter to obtain the execution result immediately. Inputexit()Press enter to exit the Python interactive environment (you can also directly close the command line window !).