Time und Sleep??????
Verfasst: Freitag 22. März 2013, 23:12
Hallo brauche noch mal eure Hilfe
Warum klappt das nicht? Wenn ich nur time.sleep(3) im Script verwende hae ich kein Problem:
Solbald aber from time...... ff. dazu kommen steigt das Prog mit nem Fehler aus.
time.sleep(3)
AttributeError: 'builtin_function_or_method' object has no attribute 'sleep'
kann jemand helfen??
Danke schon mal
Gruß Funnix
Warum klappt das nicht? Wenn ich nur time.sleep(3) im Script verwende hae ich kein Problem:
Solbald aber from time...... ff. dazu kommen steigt das Prog mit nem Fehler aus.
Code: Alles auswählen
from time import time,sleep, localtime,strftime
lt = localtime()
print strftime("Tag.Monat.Jahr: %d.%m.%Y", lt)
print strftime("Stunde:Minute:Sekunde: %H:%M:%S", lt)
time.sleep(3)
AttributeError: 'builtin_function_or_method' object has no attribute 'sleep'
kann jemand helfen??
Danke schon mal
Gruß Funnix