import time

函数
time.sleep(seconds)

参数:
seconds延迟执行代码的秒数

示例

import time

while(1):
	print("hello guoguo")
	time.sleep(1)
	

更多推荐

python延时函数的使用