2015年1月6日

摘要: 今天专门把python的字典各种方法对比测试了一下性能效果.测试代码如下: 1 def dict_traverse(): 2 from time import clock 3 my_dict = {'name': 'Jim', 'age': '20', 'height': '180c... 阅读全文
posted @ 2015-01-06 16:16 selfrebuild 阅读(262) 评论(0) 推荐(0)

2015年1月4日

摘要: 文件读写和目录遍历类的封装.mylib.py 1 # -*- coding:utf-8 -*- 2 3 __author__ = 'huanghuan' 4 5 import os 6 from os.path import basename, isdir 7 from os import li... 阅读全文
posted @ 2015-01-04 14:18 selfrebuild 阅读(287) 评论(0) 推荐(0)

2014年12月28日

摘要: ## 测试第一篇博客效果+ test+ test···print "hello world"··· 阅读全文
posted @ 2014-12-28 16:51 selfrebuild 阅读(96) 评论(0) 推荐(0)

导航