0
Help pliz . True programm ?
import time.sleep print('Hello world!') time.sleep (2) print ('goob man')
3 Antworten
+ 1
Try it out in Playground and see if it runs.
What's 'goob' by the way?
+ 1
import time.sleep is invalid, because sleep is not a module nor a package.
I don't have a good solution for importing only sleep function from time so, that time namespace is included with it, but this is valid:
from time import sleep
sleep(2)
I think this is a bad solution, but it works:
class time:
from time import sleep
time.sleep(2)
0
ok . I don't know