Mercurial > repos > triasteran > py2_patch
diff PY2_PATCH/script.py @ 0:46274846fc0c draft default tip
Uploaded
author | triasteran |
---|---|
date | Mon, 07 Mar 2022 14:46:55 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PY2_PATCH/script.py Mon Mar 07 14:46:55 2022 +0000 @@ -0,0 +1,15 @@ +import sys +print 'script starts!' + +input1 = sys.argv[1] +output1 = sys.argv[2] + +I = open(input1, 'r') +O = open(output1, 'w') + +for f in I.readlines(): + O.write(f+'1'+'\n') + +O.close() +I.close() +