a = 5 b = 6 a = a+b b = a-b a = a-b print(a,b) a = 5 b = 6 a = a^b b = b^a a = a^b print(a,b) a = 5 b = 6 a,b = b,a print(a,b)
输出
(6, 5) (6, 5) (6, 5)
原文地址:https://www.cnblogs.com/sea-stream/p/11192483.html
时间: 2024-10-11 21:54:56
a = 5 b = 6 a = a+b b = a-b a = a-b print(a,b) a = 5 b = 6 a = a^b b = b^a a = a^b print(a,b) a = 5 b = 6 a,b = b,a print(a,b)
输出
(6, 5) (6, 5) (6, 5)
原文地址:https://www.cnblogs.com/sea-stream/p/11192483.html