+ 2
i need to repeat the function every x seconds, how can i do this ?
Python Function Repeat
2 Respuestas
+ 4
Seg Adamyan , there are modules available (not in standard python installation) that can do this. what you need is a scheduler module, that can execute tasks in defined time schemes. here is a link to the documentation:
https://docs.python.org/3/library/sched.html
there is also an other module:
https://datasciencebeginners.com/2018/10/28/how-to-schedule-automate-python-tasks/
+ 4
There are Threading module that have specific functions for time and can be used to have a function as argument with timer interval .Search for Thread and Threading .