'''
题目：两个变量值互换。
'''

def exchange(a,b):
    a,b=b,a
    return(a,b)

if __name__=="__main__":
    x=10
    y=30
    print('x = %d,y = %d' % (x,y))
    x,y = exchange(x,y)
    print('x = %d,y = %d' % (x,y))

167bebf37367eb06c6c75fe2fdc952e635affa77
<mask token>

<mask token>


def exchange(a, b):
    a, b = b, a
    return a, b


<mask token>

<mask token>


def exchange(a, b):
    a, b = b, a
    return a, b


if __name__ == '__main__':
    x = 10
    y = 30
    print('x = %d,y = %d' % (x, y))
    x, y = exchange(x, y)
    print('x = %d,y = %d' % (x, y))

'''
题目：两个变量值互换。
'''

def exchange(a,b):
    a,b=b,a
    return(a,b)

if __name__=="__main__":
    x=10
    y=30
    print('x = %d,y = %d' % (x,y))
    x,y = exchange(x,y)
    print('x = %d,y = %d' % (x,y))
