annotate PY2_PATCH/script.py @ 0:46274846fc0c draft default tip

Uploaded
author triasteran
date Mon, 07 Mar 2022 14:46:55 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
46274846fc0c Uploaded
triasteran
parents:
diff changeset
1 import sys
46274846fc0c Uploaded
triasteran
parents:
diff changeset
2 print 'script starts!'
46274846fc0c Uploaded
triasteran
parents:
diff changeset
3
46274846fc0c Uploaded
triasteran
parents:
diff changeset
4 input1 = sys.argv[1]
46274846fc0c Uploaded
triasteran
parents:
diff changeset
5 output1 = sys.argv[2]
46274846fc0c Uploaded
triasteran
parents:
diff changeset
6
46274846fc0c Uploaded
triasteran
parents:
diff changeset
7 I = open(input1, 'r')
46274846fc0c Uploaded
triasteran
parents:
diff changeset
8 O = open(output1, 'w')
46274846fc0c Uploaded
triasteran
parents:
diff changeset
9
46274846fc0c Uploaded
triasteran
parents:
diff changeset
10 for f in I.readlines():
46274846fc0c Uploaded
triasteran
parents:
diff changeset
11 O.write(f+'1'+'\n')
46274846fc0c Uploaded
triasteran
parents:
diff changeset
12
46274846fc0c Uploaded
triasteran
parents:
diff changeset
13 O.close()
46274846fc0c Uploaded
triasteran
parents:
diff changeset
14 I.close()
46274846fc0c Uploaded
triasteran
parents:
diff changeset
15