Download and installation of Python
1, enter the official website to download: www.python.org/downloads/
2. Installation error caused by DLL missing
Download the DLL repair software, run the repair, restart the computer.
Python development environment
Development environment, English is IDE (Integrated Development Environment integrated development environment)
Don't dwell on which development environment to use. The development environment is essentially a python.exe to the Python interpreter.
Package, the core is the same. Can say: "Development environment IDE, just a plug-in interpreter", just to let
Programmers are more convenient to program and reduce error rates, especially spelling mistakes.
The common development environment is as follows:
1. IDLE
2. Pycharm
3. Wingide
4. Eclipse
5. IPython
The first Python source program
Print ("a")
Important: 1, do not in the program, the line at the beginning of the increase of space. Whitespace has the meaning of indentation in Python
2, symbols are English symbols, not Chinese
Basic format of the program
1, the appropriate space, indentation problems
(1) Whitespace (spaces and tabs) at the beginning of a logical line is used to determine the indentation level of logical lines, thus determining the grouping of statements.
(2) The statement starts from the new line.
(3) Uniform indentation style
Each indent level uses a single tab or four spaces (the IDE sets the indicator to 4 spaces)
Python is indented and not {} to represent the program block
2. Python is case-sensitive
3. Comments
(1) Line comment
Add # before each line of comments.
(2) Paragraph notes
Use three consecutive single quotes ' '
Introduction to Python development