Wpis z mikrobloga

@MakuZo:

os.system('cmd /k "ipconfig/flushdns"')
threading.Timer(1.0, os.system('cmd /k "ipconfig/flushdns"')).start() # called every minute

mam coś takiego, ale wyłącza się i nie robi tego co sekundę
  • Odpowiedz
threading.Timer


@ponuryrolnik:

This class represents an action that should be run only after a certain amount of time has passed — a timer. Timer is a subclass of Thread and as such also functions as an example of creating custom threads.


To nie rozwiązuje (całkiem) Twojego problemu
  • Odpowiedz