摘要: # f = open('a.txt','r',encoding='utf-8')#如果不加 encoding='utf-8'的话,那么读取的文件默认用操作系统的字符编码来读取 容易造成乱码# data = f.read()# print(data)# f.close()#.close() 如果用op 阅读全文
posted @ 2017-09-23 00:31 彭思龙 阅读(156) 评论(0) 推荐(0)