[PIPython] leggere parola per parola da file
Paolo Mossino
mox79
Ven 19 Nov 2004 15:16:47 CET
blink_twilight wrote:
> file = open("file.est", "r")
non chiamare questa variabile file: sovrascrivi una funzione built-in
> for line in file:
> for word in line:
> print word
f = open('file.ext', 'r')
for line in f:
print line.split()
--
,___, ~ Paolo Mossino (Alexander) e-m a il: mox79 a gmx.it ~
(0v0) ~ Jabber ID : alexander a jabber.linux.it - ICQ #: 28473944 ~
(_^((\ ~ "My crime is judging people by what they say and think, ~
-"-"-\\ ~ not what they look like" [Mentor's Last Words] ~
More information about the Python
mailing list