1 2 3 4 5 6 7 8
import sys if __name__ == "__main__": with open(sys.argv[1], "wb") as f: for appended in sys.argv[2:]: with open(appended, "rb") as a: f.write(a.read())