摘要: a = {"a":1, "b":2, "c":3, "d":4} 第一种:遍历key的值 for key in a : print (key+ ':' +a[key]) a:1 b:2 c:3 d:4 第二种:遍历key的值 for key in a.keys(): print(key + ":" 阅读全文