摘要: 写文件import osls=os.linesep#get filenamefname=raw_input('Enter file name: ')if os.path.exists(fname): print "Error:"+fname #get file contentall=[]print "\nEnter lines ('.' by itself to quit).\n"while True: entry=raw_input('> ') if entry=='.': brea 阅读全文
posted @ 2012-03-31 11:05 代码示例 阅读(1516) 评论(2) 推荐(1)