在python中写出四种不同的整数交换方法.
1.使用一个临时变量: ```python a = 5 b = 10 temp = a a = b b = temp ``` 2.使用算术: ```python a = 5 b = 10 a = a + b b = a - b a = a - b ``` 3.使用图普尔: ```python a = 5 b = 10 a, b = b, a ``` 4.使用位XOR运算符: ```python a = 5 b = 10 a = a ^ b = a ^ b = a ^ b ```