摘要:
文件内指针移动: 强调:只有t模式下read(n),n代表字符个数,除此之外都是以字节为单位 with open('a.txt','rt',encoding='utf-8')as f: res=f.read(4) print(res) 以字节为单位: with open('a.txt','at',e 阅读全文
posted @ 2018-11-27 14:59 大白不白 阅读(120) 评论(0) 推荐(0)
posted @ 2018-11-27 14:59 大白不白 阅读(120) 评论(0) 推荐(0)