📌  相关文章
📜  python 将两个重复的列表转换为字典 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:24.628000             🧑  作者: Mango

代码示例1
dict_1={}

for key,value in zip(list_one,list_two):
    if key not in dict_1:
        dict_1[key]=[value]
    else:
        dict_1[key].append(value)

print(dict_1)