python进阶练习之——函数交换变量❤️

111 阅读1分钟
**题目:**两个变量值用函数互换。
def exc(a,b):
    return (b,a)
a=0
b=10
a,b=exc(a,b)
print(a,b)