python—sleep

import time
time.sleep(1)
time.sleep(0.01)
time.sleep.__doc__

print(time.ctime())
sleep(10)
print(time.ctime())

t1=time.time()
sleep(10)
t2=time.time()
print(t2-t1)

print(time.__doc__)

你可能感兴趣的:(python—sleep)