The last piece of crap says a lot and now comes into our formal steps.
Or the old rules first with the environment, first you need to download a python on the official Python website
The version we choose today is 2.7.8. Because the 3.3 version of the gallery is not perfectly compatible.
The following is the official Python website https://www.python.org/
After the download completes, you need to add his. exe path to the environment variable, for example, if I am installed by default, it will be added at the end of the system's environment variable path string. C:\Python27
You can then tap python on your cmd command line to enter the interface to interact with Python.
(If you do not add environment variables, and start cmd please own Baidu.) Learning is the process of constantly solving difficulties. You have to believe in yourself)
It is recommended here that you use the notepad++ software development. You can never use Notepad world or anything, because there are all kinds of problems.
And when you develop Python, don't start at the beginning of every line. There are no spaces and tabs Python is very strict in format!
Saves the file to end with. Py.
If you want to run the file. Just select the file directory in cmd and then enter the file name in the command line to run your program, the first routine. Hello World
The program instance of PY:
print ' Hello,world ' If you want to enter a string on the python3.+, you should write
Print ("Hello world!")