会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
boooobao
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2017年2月27日
2.11 读取流数据源
摘要: import timeimport osimport sysif len(sys.argv)!=2: print >> sys.stderr ,"Please specify filename to read"filename = sys.argv[1]if not os.path.isfile(f
阅读全文
posted @ 2017-02-27 22:58 boooobao
阅读(148)
评论(0)
推荐(0)
编辑
2.10 读取打快数据文件
摘要: import sys #filename = sys.argv[1] filename=raw_input() with open(filename,'rb') as hugefile: chunksize =1000 readable='' while hugefile: start = hugefile.tell() print "...
阅读全文
posted @ 2017-02-27 20:27 boooobao
阅读(117)
评论(0)
推荐(0)
编辑
公告