> What does this comment mean? You don't have any commas in the file
> "robert.txt", and you don't actually do anything with or to commas in
> your code. I think that comment is false.
>
> > L = line.strip()
> > sheet.write(row,0,L)
>
> Here you write the entire contents of the file into one cell. You need
> to iterate over L:
>
> for c in L:
> sheet.write(row, 0, c)
> row += 1
hi steven,
ok i get what you meant. there are no pattern to split the entire contents in
the robert.txt.
is the content still needed to be splitted?
L = line.split() will result in one long string.
could you pls explain what is c? how do i modify the c in the code? pls advise.
tq
for line in f:
#for c in L:
L = line.split()
print L
sheet.write(row,0)
row += 1
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor