Python is a flexible scripting language, c\c++, Java, PHP, JSP and so can do python can do, and in some areas can do better, such as text processing, Web server programming, and so simple and fast. Because the Python source code is written in C, the execution is very efficient. Currently the latest Python version is 3.3.2, but the most popular is 2.x so we use Python 2.7.5 as an example.
Tools/Materials
hello,world!
Go to the Python website to download the latest version of Python2
Double-click to start the installation operation, select the appropriate path, the next installation is complete
- After installation can be formally programmed development, Shanghai Cheng Kai Hospital click-"Start"-"Run"-enter "cmd", open command line mode, enter "Python" to press ENTER, Start the Python interpreter. If starting the interpreter at the command line is unsuccessful, it may be because the environment variable did not join the Python.exe execution file path, adding the Python installation path to the environment variable
Enter print "hello,world!" in the Interpreter
Python will give you the famous word "hello,world!" immediately on the next line.
Isn't it simple? The Shanghai premature Ejaculation treatment Hospital will explain in detail the function of the print operator and the string base operation.
Python from Getting started to mastering tutorial one: [1]hello,world!