摘要: items()返回的是一个列表,所以当dict很大时会消耗大量内存。在python3中,items()进行了优化,也只返回迭代器,所以取消iteritems方法 阅读全文
posted @ 2013-07-16 14:44 小尼人00 阅读(159) 评论(0) 推荐(0) 编辑