app.py
1 2 3 4 5 |
import time while(True): print('hello world!') time.sleep(1) |
1 2 3 4 5 6 7 8 9 |
import schedule def func(): print("freemediatools") schedule.every(5).seconds.do(func) while True: schedule.run_pending() |