会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
shanau2
导航
博客园
首页
新随笔
联系
订阅
管理
公告
2018年11月27日
day10 文件处理指针使用 函数基本使用
摘要: 一:文件指针 强调:只有t模式下read(n),n代表字符个数,除此之外都是以字节为单位 with open('a.txt',mode='rt',encoding='utf-8') as f: #文本模式打开文件,按字符读取 res=f.read(4) print(res)、 with open('
阅读全文
posted @ 2018-11-27 16:11 shanau2
阅读(97)
评论(0)
推荐(0)
编辑