摘要: 6、collections 模块还提供有OrderedDict,用于获取有序字典import collectionsd = {'b':3, 'a':1,'x':4 ,'z':2}dd = collections.OrderedDict(d)for key, value in dd.items(): ... 阅读全文
posted @ 2015-01-24 11:51 第八片叶子 阅读(193) 评论(0) 推荐(0)