operator, assignment operator

Assignment is equivalent to description
x = y x = y The expression on the right sets the value for the operand on the left.
x += y x = x + y add
x -= y x = x - y reduce
x *= y x = x * y take
x /= y x = x / y remove
x %= y x = x % y modulus

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327034125&siteId=291194637