#1.map是3.X中的生成器 #2.建立字典的方法 bob = dict(name='Bob Smith', age=42, pay=3000, job='dev') names = ['name', 'age', 'pay', 'job'] values = ['Sue Jones', 45, 40000, 'hdw'] dict(zip(names,values) fields = ('name', 'age', 'job', 'pay') record = dict.fromkeys(fields,'')