仅使用简单的文件IO:
# tempfiles is a list of file handles to your temp files. Order them however you likef = open("bigfile.txt", "w")for tempfile in tempfiles: f.write(tempfile.read())这与操作系统无关。它也很简单,性能应该和使用其他任何东西一样好。

仅使用简单的文件IO:
# tempfiles is a list of file handles to your temp files. Order them however you likef = open("bigfile.txt", "w")for tempfile in tempfiles: f.write(tempfile.read())这与操作系统无关。它也很简单,性能应该和使用其他任何东西一样好。