eg: num = 10 num += 1 # 等价于 num = num + 1 => 11 print(num) 特殊操作: 1.链式赋值 a = b = num print(a, b, num, id(a), id(b), id(num)) 2.交叉赋值 # 传统交换赋值x = 10 y = 20 temp = xx = yy = tempprint(x, y) Output:20 10 x, y = y, x print(x, y) 3.解压赋值 ls = [3, 1, 2] a, b,…