Python installation configuration is a commonly used computer language in computer languages. In actual application, there are still some questions about Python installation configuration, the following is a detailed description of the actual application solution. I hope you will gain some benefits.
Simple Configuration:
Right-click my computer-properties-advanced-environment variables and enter your Python installation configuration location in path, which is much simpler than java. My E: \ python25133 should be the parent level directory of pythonw.exe.
Test: Create a folder. For example, create a text file under d \ code \ python and change it to hello. py. Enter
- print "Hello World"
Go to the d \ code \ python path at the command prompt
1. Input
- python hello.py
2. input directly
- hello.py
The program will output
- Hello World
Let's look at another slightly complicated program. Save it as sum. py. The execution result is:
- E:\>python e:\python\sum.py
- enter the first integer:
- 8
- enter the second integer:
- 11
- The sum is 19
The above article is a detailed introduction to the actual application operation solution for installing and configuring Python.