Last active
November 4, 2021 17:34
-
-
Save ZhijieWang/dbdce3e8d9367e008e8ea5da2e0f2e56 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 sys | |
file = sys.argv[1] | |
with open(file, "r") as f: | |
lines = f.readlines() | |
clean = [] | |
for l in lines: | |
clean.append(l.replace("\\{", "").replace("\\}","")) | |
file = sys.argv[2] | |
with open(file, "w+") as f: | |
for c in clean: | |
f.write(c) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment