python性能对比之items #1 #-*- coding:utf8-*- import datetime road_nodes = {} for i in range(5000000): road_nodes[i] = {'id':i} beg_time = datetime.datetime.now() for key, val in road_nodes.items(): pass end_time = datetime.datetime.now() print "time_scan: