📜  python 每 n 秒重复一次 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:37.951000             🧑  作者: Mango

代码示例1
#executes printit() every 5s
import threading
def printit():
  threading.Timer(5.0, printit).start()
  print "Hello, World!"

printit()