📜  python循环追加到字典 - Python代码示例

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

代码示例1
case_list = []
for entry in entries_list:
    case = {'key1': entry[0], 'key2': entry[1], 'key3':entry[2] }
    case_list.append(case)