标签: python
经过一些研究,我提供了更准确的信息。如何从该列表中的列表和字典中再次获取项目?
{ 'stationary': [ { 'pencil': 'Dixon', 'eraser': 'Staples', 'marker': 'Sharpie' } ] }
答案 0 :(得分:2)
我认为var2应该是:[['stationary',0,'pencil'],['stationary',0,'eraser'],['stationary',0,'marker']]
[['stationary',0,'pencil'],['stationary',0,'eraser'],['stationary',0,'marker']]