任何人都可以幫助我遍歷下面的字典嗎?通過詞典迭代包含字典和數組
productDict = {
32L: {
'width': [9.0, 12.0],
'depth': [2,4,6],
'height': [5.0,6.0,7.0]
},
31L: {
'width': [25.0, 30.0, 35.0, 40.0],
'depth': [],
'height': []
}
}
32L
和31L
是產品的標識。每個產品都有寬度,深度和高度...
什麼它是你想要做的嗎? – DivinusVox