Teng Liang | 938be58 | 2015-07-15 16:25:26 -0700 | [diff] [blame] | 1 | import threading |
2 | import time | ||||
3 | |||||
4 | def f(): | ||||
5 | print("HHHHH") | ||||
6 | # call f() again in 60 seconds | ||||
7 | threading.Timer(3, f).start() | ||||
8 | |||||
9 | # start calling f now and every 60 sec thereafter | ||||
10 | |||||
11 | if __name__ == '__main__': | ||||
12 | f() |