小编C. *_*ner的帖子

Python 3.5遍历字典列表

我的代码是

index = 0
for key in dataList[index]:
    print(dataList[index][key])
Run Code Online (Sandbox Code Playgroud)

似乎可以正常工作打印index = 0的字典键的值.

但是对于我的生活,我无法弄清楚如何将这个for循环放在for循环中,循环遍历未知数量的字典 dataList

python dictionary for-loop list python-3.5

17
推荐指数
3
解决办法
4万
查看次数

标签 统计

dictionary ×1

for-loop ×1

list ×1

python ×1

python-3.5 ×1