python中交换两个变量值的方法时间:2022-09-22 18:52:38a = 4b = 5 #第1种c = 0c = aa = bb = c #第2种a = a+bb = a-ba = a-b #第3种a,b = b,a print("a=%d,b=%d"%(a,b))