Python operators, basic data types

1, the basic operators:

Add, Subtract, Multiply, Divide and take the remainder (%) Take the quotient (//) **(power)  

in not in (judging whether it is inside)

1.
        The result of the operator is a value
            arithmetic operation
                a = 10 * 10
            assignment operation
                a = a + 1 a+=1

        result is a boolean
            comparison operation
                a = 1 > 5
            logical operation
                a = 1>6 or 1==1
            member operation
                a = "mosquito" in "Zheng Jianwen"

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324775848&siteId=291194637