dict_name = {'张胜男': 1, '李斯': 2, '王薇': 3}
# 打印 key
for i in dict_name:
print(i)
# 打印 value
for i in dict_name.values():
print(i)
# 打印key,value
for i,j in dict_name.items():
print(i,j)
dict_name = {'张胜男': 1, '李斯': 2, '王薇': 3}
# 打印 key
for i in dict_name:
print(i)
# 打印 value
for i in dict_name.values():
print(i)
# 打印key,value
for i,j in dict_name.items():
print(i,j)