Created
December 28, 2017 21:02
-
-
Save LiterallyVoid/60a087391c220fee009430814fe32dd5 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 | |
f = open(sys.argv[1]).read().split("\n") | |
o = "[\n" | |
for l in f: | |
o += " " + ", ".join(l.strip().split(" ")) + ",\n" | |
o += "]" | |
print(o) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment