Warum überspringt Python die Tastatureingabe???
Verfasst: Montag 1. November 2004, 15:20
Hallo liebes Pyhon-Volk,
ich wundere mich über folgendes:
Man sollte meinen, dass er auf die Eingabe und die Bestätigung mit Return wartet, aber von wegen - es folgt nur diese Ausgabe ohne auf die Eingabe zu warten:
not found!
not found!
not found!
not found!
not found!
not found!
not found!
not found!
not found!
not found!
not found!
Mit "inp = sys.stdin.readline()" hab ich es auch schon probiert.
Argh!
Kann mir jemand helfen?
Grüße
za0
ich wundere mich über folgendes:
Code: Alles auswählen
[...]
inp = ''
error=0
while error==1:
inp = raw_input()
if len(inp)>1:
print "Eingabe zu lang!"
error=1
print error
i=0
for chr in word:
i+=1
if inp==chr:
print word[i]
else:
print "not found!"
[...]
not found!
not found!
not found!
not found!
not found!
not found!
not found!
not found!
not found!
not found!
not found!
Mit "inp = sys.stdin.readline()" hab ich es auch schon probiert.
Argh!
Kann mir jemand helfen?
Grüße
za0