会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
简简单单丶丶
博客园
首页
新随笔
联系
订阅
管理
2018年11月27日
文件内指针的移动,函数的基本使用,函数的返回值,函数参数的使用
摘要: 强调:只有t模式下read(n),n代表字符个数,除此以外都是以字节为单位with open('a.txt',mode='rt',encoding='utf-8') as f: res=f.read(4) print(res)with open('a.txt',mode='rb') as f: re
阅读全文
posted @ 2018-11-27 15:03 简简单单丶丶
阅读(339)
评论(0)
推荐(0)
公告