【随手写程序】之phython 入门 读写文件程序
摘要:
学习教程python核心编程第二版课后练习之改写读写程序import os#line breaks is Common Varls=os.linesep#define writing function def writefile(): while True: filename=raw_input("enter filename>") if(os.path.exists(filename)): print "%s,this file name is exists" else: break all=[] print "\n enter lin 阅读全文
posted @ 2011-11-20 16:14 牛-_-蜗 阅读(3791) 评论(0) 推荐(0) 编辑