#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Kxk
info = {
'stu1101': "TengLan Wu", # 'key':'value', 写法
'stu1102': "LongZe Luola",
'stu1103': "XiaoZe Maliya",
}
for i in info: #只循环打印key
print(i)

for i in info: #循环打印key和value
print(i,info[i])

for k,v in info.items(): #先讲字典转换为列表,再循环打印列表对应数值,相对以上较耗内存等
print(k,v)