''' 列表转换为字典 ''' list1 = ['name','张三'] list2 = ['age','18'] print(dict([list1])) print(dict([list1,list2]))