小编luk*_*kas的帖子

Python 3列出了字典

我有三个列表,我想用它们构建一个字典:

a = [a,b,c]  
b = [1,2,3]  
c = [4,5,6]  
Run Code Online (Sandbox Code Playgroud)

我希望有:

{'a':1,4, 'b':2,5, 'c':3,6}
Run Code Online (Sandbox Code Playgroud)

我现在能做的就是:

{'a':1,'b':2, 'c':3}
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

python merge dictionary list python-3.x

-2
推荐指数
1
解决办法
1963
查看次数

标签 统计

dictionary ×1

list ×1

merge ×1

python ×1

python-3.x ×1