# [Python] liberal arts students zero basic programming Series 3-basic types of data operators,

Source: Internet
Author: User

[Python] liberal arts students zero basic programming Series 3-basic types of data operators,

Previous Article: [Python] NJI programming Series II-basic concepts of data types, variables, and constants

Next article:

Simply put,The operator is the bridge to connect.

`※The execution process of a program is the process of calculating data.Different Data Types support different operations,FollowDifferent data operation types, AndDivided into different data operators.`

4.1 Data Operators: (Python is used as an example)

4.1.1 Arithmetic Operators

Scope of use: arithmetic operation

Return Value Type: Numeric

Symbol list: (see figure)

4.1.2 comparison (relational) Operator

Scope of use: Comparison

Return Value Type: boolean

Return Value: True or False

Symbol list: (see figure)

4.1.3 value assignment operator

Usage scope: Value assignment

Return Value: reference of the left operand (the number returned by the value assignment operator is not the value of the variable, but the address of the variable .)

Symbol list: (see figure)

4.1.4 logical operators

Scope of use: Determine whether the logic formula is true or false

Involved data type: Logical Data

Return Value Type: boolean

Return Value: True or False

Symbol list: (see figure)

4.1.5 bitwise operators

Scope of use:

Symbol list: (see figure)

4.1.6 member operators

Scope of use: used to determine whether a member is true or false in a specified sequence.

Return Value Type: boolean

Return Value: True or False

Symbol list: (see figure)

4.1.7 identity Operators

Scope of use:

Return Value Type:

Return Value:

Symbol list: (see figure)

4.2 operator priority:

Previous Article: [Python] NJI programming Series II-basic concepts of data types, variables, and constants

Next article:

Related Keywords:
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.