x={1:2}
x[2]=3
print(x)
{1:2,2:3}
>>> x={1:2}
>>> x[2]=4
>>> x
{1: 2, 2: 4}
字典-赋值 x={1:2} x[2]=3
猜你喜欢
转载自blog.csdn.net/bb_soma/article/details/105572908
今日推荐
周排行