Created
May 1, 2019 02:40
-
-
Save LanHao0/520f9faf3b39678007b928240e9b26aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
read_files = glob.glob("*.txt") | |
with open("result.txt", "wb") as outfile: | |
for f in read_files: | |
with open(f, "rb") as infile: | |
outfile.write(infile.read()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment