If you have some problems with Python installation during the actual application process of Python installation, you can browse our article, our article is an introduction to its related content. I hope you will gain some benefits after reading our article.
Download the windows version. After the download is complete, double-click it and install it step by step.
- *Python 2.5.2 Windows installer
After installation, start Python command line and enter:
- *Python 2.5.2 Windows installer
If the output
- "Hello World"
It indicates that the installation is successful. Simple configuration: Right-click my computer-properties-advanced-environment variables and enter your python installation 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"
Enter python hello in the installation path d \ code \ python at the command prompt. py, enter hello. py must set the environment variable.) The program will output Hello World. Let's look at another slightly complicated program.
- integer1=raw_input("enter the first integer:\n")
- intinteger1=int(integer1)
- integer2=raw_input("enter the second integer:\n")
- intinteger2=int(integer2)
- sum=integer1+integer2
- print "The sum is ",sum
Save 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 introduces the Actual Application Operation solution installed in Python.