标签:
代码:
fileReadObj = open("input.txt") fileWriteObj = open("output.txt", ‘w‘) fileLineText = fileReadObj.readline() while (‘‘ != fileLineText): string = fileLineText fileWriteObj.write(string) fileLineText = fileReadObj.readline() fileReadObj.close() fileWriteObj.close()
标签:
原文地址:http://www.cnblogs.com/kamil/p/5178101.html