列表转字典 # 遍历思想 list = [('a', '1'), ('b', '2'), ('c', '3')] new_dict = {} for i in list: new_dict[i[0]] = i[1] print(new_dict) # dict() new_dict = dict(list) print(new_list) # 第二种遍历 for i in range(len(list)): new_dict[list[1][0]] = list[i][1] print(new_dict)