摘要: #open函数,该函数用于文件处理,文件操作一共就有三种方法,打开文件#关闭文件,#先来说下打开文件,打开文件的模式有下面几种# 1、r,只读模式 f = open('test.log','r',encoding='utf-8')print(f.readable())True # 2、w、只写模式【 阅读全文
posted @ 2017-03-13 23:57 bainianminguo 阅读(4886) 评论(0) 推荐(0) 编辑