How come when i print new dict, my Trial 1 and Trial 2 value are the same even though i already randomised for all the name

前端 未结 0 1712
天命终不由人
天命终不由人 2021-02-13 02:33
Dict = {{Trial:1, {John: 1, Harry: 2, Dick: 3}}, {Trial:2, {John:4, Harry: 3, Dick: 2}}}
NewDict = {}
for Trial, TValue in Dict.items(): 
 for Name, Value in TValue.item         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题