对大文件进行复制,读一行复制一行
file_read = open("C:\\Users\\me\\Desktop\\readme.txt")
file_write = open("C:\\Users\\me\\Desktop\\readme2.txt", "w")
while True:
text = file_read.readline()
if not text:
break
file_write.write(text)
print(text)
file_read.close()
file_write.close()