a = ['名字','年龄','性别']
b = ['Ken','18','男']
c = dict(zip(a,b))
print(c)
s = ''
print(s.center(60,'-'))
print(c.items())
print(s.center(60,'-'))
print(c.values())
print(s.center(60,'-'))
print(c.keys())
print(s.center(60,'-'))
x,y,z = c
print(x)
print(y)
print(z)
print(s.center(60,'-'))
o,p,q = c.values()
print(o)
print(p)
print(q)
print(s.center(60,'-'))
u,v,w = c.items()
print(u)
print(v)
print(w)
print(s.center(60,'-'))
{'名字': 'Ken', '年龄': '18', '性别': '男'}
------------------------------------------------------------
dict_items([('名字', 'Ken'), ('年龄', '18'), ('性别', '男')])
------------------------------------------------------------
dict_values(['Ken', '18', '男'])
------------------------------------------------------------
dict_keys(['名字', '年龄', '性别'])
------------------------------------------------------------
名字
年龄
性别
------------------------------------------------------------
Ken
18
男
------------------------------------------------------------
('名字', 'Ken')
('年龄', '18')
('性别', '男')
------------------------------------------------------------