1-1
How to install under Windows
Download python2.7 directly to C drive on the Internet
1) Locate the path in the system variable.
2) Edit the path value and add the Python path you installed, C:\Python27.
3) Verify that the Python installation configuration is successful, open cmd, enter Python, and if the following interface appears, your Python installation is successful.
1-2
A. Three ways to execute Python
1) Start the interactive interpreter PowerShell Python and enter one line of Python code at a time
2) script to run Python
3) Integrated development Environment Graphical interface (IDLE) running Python
B.
1-3
3. Execution procedure in C:PYTHON27 standard library in C:/python27/lib
1-4
print ' Hello world! '
1-5
1-5.py
print ' Hello world! '
Running in PowerShell
1-6
1-6.py
Name= "Steve"
Age=18
Favoritecolor= "Blue"
interest= "Coding"
Print "My name is%s"%name
Print "My age is%d"%age
Print "My favorite color is%s"%favoritecolor
Print "My interest is%s"%interest
Python Core Programming 2 Chapter I practice after class