Introduction to Python development

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.