Recently not too busy, find Python written by the program simple easy to understand, ready to learn the mystery of it,
Python can be used directly under Linux, with embedded Python system in common
Under Windows need to download a python, I downloaded a activePython3.0 version, where syntax and 2.X are a little different
You can execute a piece of code directly below Python
For example, the + + automatically recognizes and returns 2
You can also write the Chengxu program into a file and execute the script with the Python command.
After writing a Python code, save the file, such as "helloworld.py", to run it, you can run under CMD, first under CMD to the directory where your helloworld.py is located.
You can run Python helloworld.py.
If an error
"' Python ' is not an internal or external command, nor is it a running program
or batch file. ”
Prove that you did not set the environment variable. You need to place the Python installation directory in the environment variable.
I was installed in "D:\Python33", So right-click "My Computer"-"Properties-" Advanced environment Settings-"advanced-" environment variable
Find the path in the system variable, click Edit to put your Python installation directory inside, my is D:\Python33, add in, just fine. Note the ";" between environment variables Separated.
Try the python command again with CMD.
Python language entry-level use (i)