Привет F.!
31 мая 2005 в 06:08, F. Petitjean в своем письме к All писал:
>> I'am using eric3 IDE under win32 (snapshot 2005-04-10), and have a
>> trouble. I use this code:print "enter q to quit, or smthing else
>> to continue"while not sys.stdin.readline()=="q":
>> smthing(else)
FP>
Привет Magnus!
31 мая 2005 в 13:46, Magnus Lycka в своем письме к All писал:
ML> The readline method includes the whole line, including the
ML> linefeed character if you press q followed by ENTER. If you
ML> change it to...
ML> while not sys.stdin.readline()=="q\n":
ps. I'am usually u
Gerrit van Dyk wrote:
> Try using raw_input() instead of the sys.stdin.readline(). raw_input()
> is the preferred way of getting console input.
Is it? Guido's "Python Regrets" slides (Google for them) seems
to say the opposite. Besides, that's not the problem here...
Alexander Zatvornitskiy wrot
Le Tue, 31 May 2005 03:13:31 +0400, Alexander Zatvornitskiy a écrit :
> Hello All!
>
> I'am using eric3 IDE under win32 (snapshot 2005-04-10), and have a trouble. I
> use this code:
> print "enter q to quit, or smthing else to continue"
> while not sys.stdin.readline()=="q":
> smth
Alexander Zatvornitskiy wrote:
> Hello All!
>
> I'am using eric3 IDE under win32 (snapshot 2005-04-10), and have a trouble. I
> use this code:
> print "enter q to quit, or smthing else to continue"
> while not sys.stdin.readline()=="q":
> smthing(else)
>
Try using raw_input() ins
Hello All!
I'am using eric3 IDE under win32 (snapshot 2005-04-10), and have a trouble. I
use this code:
print "enter q to quit, or smthing else to continue"
while not sys.stdin.readline()=="q":
smthing(else)
I can't run this code to debug in eric3. The questions are - how to fix i