摘要: #字符编码: #python 3默认读取数据是 utf-8 #windows默认是gbk编码 读 with open('test','r') as f: #这个方法后面不需要关闭 file = open('test',encoding='utf-8').read() #文件不能直接读取,因为是存在内 阅读全文
posted @ 2019-12-01 10:36 小东阁下 阅读(150) 评论(0) 推荐(0) 编辑