Python language supports the following types of operators:
Arithmetic operator comparison (relational) operator assignment operator logical operator bit operator member operator identity operator operator precedence 01 .Python arithmetic operators The following assumes that variable a is 10 and variable b is 20
02. Comparison operation
03. Assignment operation
04. Logical operations
##05.Member operations
06. Identity operation
07. Bit operation
08.Operator priority
My personal opinion so far Speaking of operator priority, it is enough to know that exponent operations > parentheses operations > multiplication and division operations > addition and subtraction operations. See the original text: http://www.runoob.com/python/python-operators.html
The above is the detailed content of Python basics: operators. For more information, please follow other related articles on the PHP Chinese website!