会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
罗兵の水库
人生苦短,我用Python
博客园
首页
新随笔
联系
管理
2016年6月8日
读取文件最后一行的两种方式
摘要: '''读取文件最后一行''' import os # 小文件:批量读取 def get_last_line(filename='mark.csv'): fullfilename = os.path.join(os.path.dirname(__file__), filename) with open(fullfilename, 'r', encoding='utf-8...
阅读全文
posted @ 2016-06-08 02:46 罗兵
阅读(2320)
评论(0)
推荐(0)
编辑
公告