Forum: Python Sep 24th, 2006 |
| Replies: 9 Views: 1,769 1. i have tried codes. it runs vey well. how can i use files argument?
my python file bank.py
i call file using arguments
bank.py <filename>
2. line.replace(" ","\t") doesnt work. i am... |
Forum: Python Sep 24th, 2006 |
| Replies: 9 Views: 1,769 additionally,
if A1 or A2 columns start with "2", insert 555.
A1:250 then A1:555240
ID A1 A2 Date Time Sec SID Bank
40 555250 300 01.01.2005 13:43:21 250... |
Forum: Python Sep 24th, 2006 |
| Replies: 9 Views: 1,769 ok...assume that column6-7-8 are variables.
ID A1 A2 Date Time Sec.SID Bank
40 250 300 01.01.2005 13:43:21 250 12345678 KENTBANK
31 123 455 02.02.2005 11:22:43 450 column7... |
Forum: Python Sep 24th, 2006 |
| Replies: 9 Views: 1,769 thanks guys...it's good for me. if some lines are empty, how can i set them default valus?
for example:
ID A1 A2 Date Time Sec.SID Bank
40 250 300 01.01.2005 13:43:21 250... |
Forum: Python Sep 24th, 2006 |
| Replies: 9 Views: 1,769 i am newbie and have a problem. i have a text file(rawfile.txt) like below.
NAME:XXXXXXXXXXXX
SURNAME:XXXXXXXXXXXX
DATE:23.09.2006
A B C D E F G H (column names)
40 250 300 01.01.2006... |