Currently,PythonThere are two major versions:2.7,3.6, two versions are incompatible. 2.7is the industrial version, the current large number of production environment is this version, because it has been running online, many can not be changed. A new start-up company will generally have3.0+.
according Python officially announced that 2020 years of abandonment, the official recommendation to 3.0+, we will directly use the 3.6.
In fact, there will be a version, the other version will be used. the difference between 2.7 and 3.0+ is very small, mainly including:
1,3.0+ support Chinese
2, core grammar adjustment, easier to learn
3, new features only added in the new 3.0+ .
Since this course is 0 basic and hands-on, Windows Environment as an example. As for Linux and MySQL, there will be presentations later.
The first step , in Enter www.python.org in the IE address bar , select "Downloads", and click "Python3.6.3" To download the Python3.6 installation package.
when the download is complete,
Step Two , click "python-3.6.3.exe" to install. Select "Custom Installation" and select " add Python installation directory to PATH"
Step three , in the Custom installation location, enter the D:\ python36", install Python in d:\ python36 directory
Fourth Step , enter Windows Start menu, select "command line Prompt", enter "python–version", "Python3.6.3" appears,indicating the installation is successful.
Fifth Step , enter the Windows Start Menu ", find"Python3.6", click"IDLE (python GUI)"to open the Python development environment.
Sixth Step , enter print (' Hello World ') in the back of >>>, and the Hello World appears .
Congratulations! At this point, the successful completion of the Python installation and environment configuration, and implement their own first Python program, is not very excited, the next section we talk about variables and data types.
"0 Basics teach you to learn Python" 02 first intimate contact with Python--helloworld