摘要: 一、文件操作 1.打开方式分为两种:绝对路径打开,相对路径打开 d:\asd.txt asd.txt 2.编码方式:utf-8、gbk。。。 3.操作方式:只读、只写、追加、读写、写读。。。 读:r、rb、r+ 打开一个文件: f = open('file',mode='r') print(f.re 阅读全文
posted @ 2017-12-25 20:34 2009_boy 阅读(145) 评论(0) 推荐(0)