python中的字典两种遍历方式时间:2023-03-09 08:02:32 dic = {"k1":"v1", "k2":"v2"} for k in dic: print(dic[K]) for k, v in dic.items(): print(k, v) 这两种方法都可以用来遍历的。