会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
chengd
博客园
首页
新随笔
联系
订阅
管理
2017年7月1日
python 生成器按指定大小读取文件
摘要: #!/usr/bin/env python import osimport sys def read_file(fpath): Block_Size = 1024 with open(fpath,"r") as f: while True: block = f.read(Block_Size) if
阅读全文
posted @ 2017-07-01 23:44 chengd
阅读(3319)
评论(0)
推荐(1)
公告