摘要: 一、打开文件 1、f = open('text','w',enconding = 'utf-8') f.close() 2、with open('text','w',enconding = 'utf-8') as f: pass 1、2功能一样,不过推荐使用2,不需要自己关闭文件。 二、各种模式详解 阅读全文
posted @ 2017-05-08 18:53 zj-luxj 阅读(179) 评论(0) 推荐(0) 编辑