我刚刚创建了一个程序,但是我想在一个地方创建一个函数只是等待几秒钟才能继续工作。你能告诉我这个功能是怎么看的吗?
例如
print 'I know'
(HERE wait few seconds to continue working)
print 'I am so layman with my trivial question'
答案 0 :(得分:0)
import time
print 'I know'
time.sleep(1) #number of seconds to wait
print 'I am so layman with my trivial question'