会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
tresser
博客园
首页
新随笔
联系
管理
订阅
2018年7月30日
python文件IO---读取指定行
摘要: # Python的标准库linecache模块非常适合这个任务 import linecache the_line = linecache.getline('d:/FreakOut.cpp', 222) print (the_line) # linecache读取并缓存文件中所有的文本, # 若文件
阅读全文
posted @ 2018-07-30 16:41 tresser
阅读(3672)
评论(0)
推荐(0)
编辑
公告