Python base 1.4 python operator

Source: Internet
Author: User

A. Boolean value:1 "True2 "Falsetwo. Relational operators"=" (a=b): Assigns the value of B to a. Equal value Assignment"= =" (a==b): Determines whether A and B are equal. Return to Trule or flase"! = ": Not Equal to">": Greater than"<": Less than">=": greater than or equal to"<=": less than or equal tothree. Assignment Operators"+": Represents the connection operation, and the result is a new list is created"+ =": Is the replacement join Operation added in python2.0, as implies, equivalent to the Extend () method, actually adds the new list to the old list. For examplea=10b=5a+=b a=a+b"-=""*=""/="four. Logical operators1 "and: true if both sides of the equation are true 2 or: True on either side of the equation3 "not: logical non-operation, used to reverse the operation State of the logical number. If a condition is true, the logical non-operation returns false. 4 Priority order: not (highest)---and----or (lowest)

Python base 1.4 python operator

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.