列表转换为字典。
1 #! /usr/bin/env python 2 # -*- coding:utf-8 -*- 3 ''' 4 列表转换为字典。 5 ''' 6 i = ['a', 'b'] 7 l = [1, 2] 8 print (dict([i,l]))
xliaoe at 111 dot com ; 返回顶部