
python
xiayu98020214
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python 按文件大小排序,含子目录文件
import osimport os.pathdef my_cmp(E1, E2): return -cmp(E1[1], E2[1]) L={}k={}count=0rootdir = "/home/xiayu/.mozilla/firefox/06ze02mw.default/Cache"for parent, dirnames, filenames in os.walk原创 2013-04-07 14:47:04 · 4246 阅读 · 0 评论 -
python firefox 中提取sohu视频缓冲,并排序
import osimport os.pathimport timeimport shutildef my_cmp(E1, E2): return -cmp(E1[1], E2[1])L={}k={}count=0rootdir = "/home/xiayu/.mozilla/firefox/06ze02mw.default/Cache"desdir="/tmp/frie原创 2013-04-11 10:01:20 · 808 阅读 · 0 评论 -
python 用于git的脚本
'''Readmepython commitmessage.py 19.3.A.0.12 19.3.A.0.13oldtag:19.3.A.0.12 newtag:19.3.A.0.13'''import osimport os.pathimport stringimport sysimport commandsclass ParseCommit: d原创 2015-04-15 17:56:39 · 4321 阅读 · 0 评论 -
检查一个ttf文件是否支持一个给定unicode. python写的
import fontforgeimport osimport os.pathrootdir = "."for parent,dirnames,filenames in os.walk(rootdir): for filename in filenames: print "filename is:" + filename原创 2015-04-09 14:28:44 · 3296 阅读 · 1 评论