摘要: 强调:只有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)