Python如何循环遍历输出字典的值?

1 个回答|93 次阅读
Coco老师 - 科普专家
擅长:编程教育
dict1 = {
  "name": "feifei",
  "gender": "girl",
  "age": 28
}
for x in dict1:
    print(dict1[x])

执行结果:

feifei
girl
28