摘要: 1- 字典-内置数据结构,数据值与键值关联键-字典中查找部分值-字典中数据部分使用dict()工厂函数或者只用{}可以创建一个空字典>>> list = {}>>> list['name']='hello'>>> list['pwd']='world'>>> list['name']'hello'>... 阅读全文
posted @ 2014-06-19 15:09 galoishelley 阅读(252) 评论(0) 推荐(0)
摘要: 相同功能,演进实现数据文件sarah2.txtsarah Sweeney,2002-6-17,2:58,2.58,2:39,2-25,2-55,2:54,2.18,2:55,2:551- 返回dictreturn({'Name':data_list.pop(0),'DOB':data_list.po... 阅读全文
posted @ 2014-06-19 14:52 galoishelley 阅读(546) 评论(0) 推荐(0)