2013年5月10日
摘要: FilesFile iterators are best for reading linesContent is strings, not objectsclose is usually optionalFiles are buffered and seekable.>>> myfile = open('myfile.txt', 'w') # Open for text output: create/empty>>> myfile.write('hello text file\n') # Write a lin 阅读全文
posted @ 2013-05-10 17:53 大哉昆仑 阅读(203) 评论(0) 推荐(0)