python-Job-3

Source: Internet
Author: User

1. And or not preferably in parentheses, first calculate parentheses

Execution order:

Front to back

Results

True OR ==>true

True and ==> continue walking

False OR ==> continue.

False OR ==>false

2. Several major symbols are categorized

The result is a value: arithmetic operation (a = 10*10), assignment operation (A = a+1/a + = 1)

The result is a Boolean value: The comparison operation (a = 1<5), the logical operation (A = 1< 6 or 1==1), the member operation (a = "B" in "Biology")

3. Basic data types

numeric int, all functions are in int

String str, all functions are placed in STR

List of lists, all functions are placed in list

Ganso tuple, all functions are placed in a tuple

The dictionary dict, all the functions are put in the dict.

boolean bool, all functions are placed in bool

python-Job-3

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.