python
第一种
a = 2
b = 3
a = a + b # a = 5 b= 3
b = a - b # a = 5 b = 3
a = a - b # a = 3 b = 2
print(a,b)
第二种
# a,b = b,a
# print(a,b)
python
第一种
a = 2
b = 3
a = a + b # a = 5 b= 3
b = a - b # a = 5 b = 3
a = a - b # a = 3 b = 2
print(a,b)
第二种
# a,b = b,a
# print(a,b)