Python: Assignment Operators
一
>>> x = 7
>>> y = x
>>> print(y)
7
二
Assign multiple variables at once:
x, y, z = 7, 8, 9
Can use this when assigning closely related variables, like the width and height or an object coordinates
三
Can use plus equals operator or something like this:
x += 2 # equals to: x = x + 2
x -= 2 # equals to: x = x - 2
x *= 2 # equals to: x = x * 2
...