字典

字典创建方式
第一种(利用zip函数):
print(dict(zip(list1,list2)))
第二种(利用dict直接创建):
dict(a=1,b=2,c=3)

posted @ 2020-08-29 17:49  吴莫愁258  阅读(103)  评论(0编辑  收藏  举报