方法一:a = 5b = 9temp = aa = bb = tempprint(a,b)执行结果是:9 5方法二:a = 5b = 9a,b=b,aprint(a,b)执行结果是:9 5第二种方式也是Python独特的地方,更加简洁。