diff --git a/map1.py b/map1.py index 83b8e33a4c28367c0295ce26b421f5f7294bf9d5..a7c7cefe9460d815b72c3db3a5177a521c4dacb8 100644 --- a/map1.py +++ b/map1.py @@ -12,6 +12,7 @@ def map1(vote_str): else: ret = vote[j] + ">" + vote[i] + ",0" print(ret) - test_ret += ret - test_ret += '\n' - return test_ret +with open(sys.argv[1]) as f: + lines = f.readlines() +for l in lines: + map1(l)