func jiaohuan(a: inout Int , b:inout Int){ let temp = a a = b b = temp } var x = 20, y = 30 jiaohuan(a:&x , b:&y) print(x,y)