发布时间:2019-09-22 07:46:44编辑:auto阅读(1729)
# Auther: Aaron Fan
info = {
'stu1102': 'LongZe Luola',
'stu1103': 'XiaoZe Maliya',
'stu1106': 'Alex'
}
#方法1(更高效)
for key in info:
print(key,info[key])
print("-----------------------------------------------")
#方法2
for k,v in info.items(): #会先把dict转成list,数据里大时莫用
print(k,v)
上一篇: python3_08.动动mysql
下一篇: A Tour of Go: Basics
47834
46376
37259
34721
29304
25964
24883
19942
19531
18013
5782°
6406°
5919°
5957°
7058°
5903°
5935°
6431°
6399°
7769°