If you have a detailed step on Python installation and configuration, you can browse our article. Our article is about Python installation and configuration, I hope you have read the following articles, and I hope you will have some gains. The following is a detailed introduction to this article.
Install it first, and then install it step by step. After installation, start Python command line and input: print "Hello World". If "Hello World" is output, the installation is successful.
The following is a simple configuration:
Right-click my computer-properties-advanced-environment variables and enter your python installation location in path. Isn't it easy? It's much simpler than java. In d \ code \ python, you can create it as needed .) Create a text file and change it to hello. py
- print "Hello World"
Enter the path d \ code \ python at the command prompt and enter python hello. py, enter hello. py must set environment variables.) The program will output Hello World, which cannot be seen. Let's look at another one:
- integer1=raw_input("enter first integer:\n")
- intinteger1=int(integer1)
- integer2=raw_input("enter first integer:\n")
- intinteger2=int(integer2)
- sum=integer1+integer2
- print "sun is ",sum
Save as sum. pyraw_input is a built-in function that requires user input. Integer1 = int (integer1) converts integer1 to an integer. Is python programming quite in line with human thinking ?? Enter the python programming world. The execution result is:
- Microsoft Windows [version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
- d:\code\Python>sum.py
- enter first integer:
- 3
- enter first integer:
- 4
- sun is 7
- d:\code\Python>
The above article introduces the practical application solutions for installing and configuring Python.