def exc(a,b):return(b,a)a=0b=10a,b=exc(a,b)print(a,)
def exc(a,b): return(b,a) #返回两个整数交换位置后的元素 a=0 b=10 a,b=exc(a,b) #交换a,b的值 print(a,b) #输出10 0