python字典里有列表,怎样能让字典的键对应列表的每一个数据

2025-03-28 12:47:40
推荐回答(1个)
回答1:

a={'list':[1,2,3,4,56,7,8]}
for i in a:
    for j in a[i]:
        print i,j