Python Language Learning 6--python Basics

Source: Internet
Author: User

Python is a computer programming language.

#the statement at the beginning is a comment , the comment is for the person, can be any content

Each of the other lines is a statement, and when the statement ends with a colon : , the indented statement is treated as a block of code .

Python program is case sensitive , if the case is wrong, the program will error

Indentation has pros and cons. The advantage is that you are forced to write the formatted code, but there is no rule that indents are a few spaces or tabs.

In accordance with established management, you should always stick to the indentation of 4 spaces.

In the text editor, you need to set the tab to automatically convert to 4 spaces, making sure you don't mix tabs and spaces.

Python Language Learning 6--python Basics

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.