2016年11月8日

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)

python中使用zip函数出现<zip object at 0x02A9E418>

摘要: 在Python中使用zip函数,出现<zip object at 0x02A9E418>错误的原因是,你是用的是python2点多的版本,python3.0对python做了改动 问题一:zip方法在Python 2 和Python 3中的不同Python 2 的代码演示: $ python2 >> 阅读全文

posted @ 2016-11-08 11:27 星河赵 阅读(11859) 评论(0) 推荐(1)

导航