2018年8月13日
摘要: # 整理自Python Cookbook # 整理自Python Cookbook 1. 保持字典有序 可以使用collections模块中的OrderedDict类,对字典做迭代时会严格按照元素的添加顺序进行。 from collections import OrderedDict d = Ord 阅读全文
posted @ 2018-08-13 20:15 浅塘 阅读(635) 评论(0) 推荐(0) 编辑