Python3 does not use third party variables to exchange the values of two variables
- 2021-07-01 07:59:52
- OfStack
method 1:
a , b = b , a
method 2:
a = a+b
b = a-b
a = a-b
method 1:
a , b = b , a
method 2:
a = a+b
b = a-b
a = a-b