输入两个整数,范围-231~231-1,交换两个数并输出。
s = input() a,b = s.split(",")[0].split("=")[1],s.split(",")[1].split("=")[1] c,d = s.split(",")[0].split("=")[0],s.split(",")[1].split("=")[0] print(f"{c}={b},{d}={a}")
a, b = input().split(',') a = a[2:] b = b[2:] a, b = b, a print(f'a={a},b={b}')
a,b=map(int,input().split(',')) print("a={},b={}".format(b,a))
a,b = input().split(',') print ('a=%s,b=%s'%(b[2:],a[2:]))