摘要: 1. 说是从一个文件复制到另一个文件, 其实还是读写啦,参考:习题—17 http://www.2cto.com/shouce/Pythonbbf/index.html # coding: utf-8from sys import argv # 导入argv模块from os.path import 阅读全文
posted @ 2016-06-08 19:30 坏小孩D_R 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1. 先读后写,逐行输入,同样是先open()再read(), 'r':(read)只读,'w':(write)写,'a':(append)追加。 参考: 习题—16 http://www.2cto.com/shouce/Pythonbbf/index.html # coding: utf-8 # 阅读全文
posted @ 2016-06-08 12:43 坏小孩D_R 阅读(190) 评论(0) 推荐(0) 编辑