My dictionary is as below
{
'34.8': [[0, 0, 0, 0], [0, 0, 0, 0]],
'34.6': [[0, 0, 0, 0], [0, 0, 0, 0]],
'35.0': [[0, 0, 0, 0], [0, 0, 0, 0]],
'34.4': [[0, 0, 0, 0], [0, 0, 0, 0]],
'34.2': [[0, 0, 0, 0], [0, 0, 0, 0]],
'34.0': [[0, 0, 0, 0], [0, 0, 0, 0]]
}
and I run code.
print '34.6', testDic['34.6']
print '34.8', testDic['34.8']
testDic['34.6'][0][0] = 1234
print testDic
but result is
{
'34.8': [[1234, 0, 0, 0], [0, 0, 0, 0]],
'34.6': [[1234, 0, 0, 0], [0, 0, 0, 0]],
'35.0': [[1234, 0, 0, 0], [0, 0, 0, 0]],
'34.4': [[1234, 0, 0, 0], [0, 0, 0, 0]],
'34.2': [[1234, 0, 0, 0], [0, 0, 0, 0]],
'34.0': [[1234, 0, 0, 0], [0, 0, 0, 0]]}
why change all dic value ?? and how do I change only 1 (such as '34.6') ??