mydict = {a: [1,2,3],b:[4,5,6]}
现在我想把字典中,key =b 的列表第二个值给到变量result,该如何取值?也就是说预期result=5
收起
试下
result = mydict['b'][1]
报告相同问题?