摘要: ※控制文件内指针的移动只有在t模式下read(n),n代表字符个数,除此以外都是以字节为单位with open('b.txt',mode='rt',encoding='utf-8') as f: res=f.read(4) print(res) with open('b.txt',mode='rb' 阅读全文
posted @ 2018-11-27 18:56 Zhuang_Z 阅读(168) 评论(1) 推荐(0)