python延时函数的使用


import time

函数
time.sleep(seconds)

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

示例

import time

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

你可能感兴趣的:(Python,python)