多个列表组合成一个字典
list1 = ['组', '2023-1-1', '2023-1-2', '2023-1-3', '总业绩']
list2 = ['一组', '1', '2', '3', '6']
list3 = ['二组', '4', '5', '6', '15']
list4 = ['三组', '7', '8', '9', '24']
def get_dict(list_num):
dict_list3 = {list_num[0]: dict(zip(list1[1:], list_num[1:]))}
return dict_list3
dict_list2 = get_dict(list2)
dict_list3 = get_dict(list3)
dict_list4 = get_dict(list4)
dict_all = {**dict_list2, **dict_list3, **dict_list4}
print(dict_all)