Python3字典中items()和python2.x中iteritems()有什么区别
摘要:
在Python2.x中,items( )用于 返回一个字典的拷贝列表【Returns a copy of the list of all items (key/value pairs) in D】,占额外的内存。 iteritems() 用于返回本身字典列表操作后的迭代【Returns an ite 阅读全文
posted @ 2016-11-08 13:11 星河赵 阅读(1851) 评论(0) 推荐(0)
浙公网安备 33010602011771号