摘要: 1.文件处理(i/o处理) 在python2里用file,在python3里用open w没有创建/有就覆盖 r 阅读 a 追加 创建文件 f = file(‘myfile.txt’,’w’) f = write(“hello world!”) f.close 遍历文件内容 a = file(‘us 阅读全文
posted @ 2018-08-19 16:53 月半月半儿瓜 阅读(111) 评论(0) 推荐(0) 编辑