a = {} i,a[i] = 1,2 a
运行结果是
{1:2}
上面这段平行赋值是如何实现的,原理是什么
上面赋值是错误的,一行代码对多个变量赋值是这样格式: a, b,c =1,2,3
a = {} i = 1 a[i] = 2 print(a)
你这能赋值成功??