# coding=utf-8 ''' Created on 2016年4月20日 测试List和Set的效率 @author: ChenHao ''' a = range(10) s = set(a) d = dict((i,1) for i in a) print (d)