摘要: 1. 遍历key dic = {'a': '1', 'b': '2', 'c': '3'} for key in dic: print(dic[key]) #另一种方式, 更直白 for key in dic.keys(): print(key) 2. 遍历value dic = {'a': '1' 阅读全文
posted @ 2018-12-24 16:24 coffee~ 阅读(276) 评论(0) 推荐(0) 编辑