Python Full stack Development--01 Foundation

Source: Internet
Author: User

#!/usr/bin/env Python can declare the Python interpreter used by Liunx (unique)

Coding

#-*-Coding:utf-8-*-

Python2 have Chinese language to add the code in the header file Plus, Python3 do not use, the default is Utf-8 (also can be written UTF8)

Python syntax

#变量名
1. Letters
2. Digital
3. Underline

#永远等待 until the user enters a value, n generation refers to the value entered by the user
N=input (' Please enter user name: ')

#条件语句 

If condition:
Statement block
Elif Conditions:
Statement block
Else
Statement block

#假如要什么都不用执行, can't be empty, write a pass

#字符串 (quotation marks)
1. Can be added
2. Can ride
#数字:
Subtraction second-party surplus

Note://Only pick-up,/Shangyu are taken
#循环
While condition:
Statement block

Python Full stack Development--01 Foundation

Related Article

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.