python study notes bis (operator and expression)

Expression: expression of variables, constants, and operators consisting of

Arithmetic operations and arithmetic expressions
arithmetic operators: + (addition) - (subtraction) (multiplication) / (division)% (modulo) ** (exponentiation) // (rounding)
arithmetic expressions: 1 2 + 1'd
. 8 ab &
reading expressions:
(1) function: mathematical operations related symbols will not change the value of the variable
(2) values: correlation calculation result data
Here Insert Picture Description
assignment operators and amplitude calculation expression
assignment operator: =
assignment expression
format: variable = expression
function: Compute the value of the right side of the equal sign of expression, and assignment to the left of the equal sign of the variable
value: the value of the variable after the assignment
compound operator
+ = a + = b considerable to a + B = a
- = A- = B = ab & corresponds to a
/ = a / a = = B corresponds to a / B
% = a% B = B% corresponds to a = a
= a = B corresponds to a A ** B =
// // A = B = corresponding to a = a // b

Guess you like

Origin blog.csdn.net/weixin_38324954/article/details/91434609