开发者

Python Timed-Script

开发者 https://www.devze.com 2023-02-24 06:37 出处:网络
How do I have a python script run开发者_StackOverflow中文版 everyday at a set-time. Say exactly at 2:00 P.M. every day.

How do I have a python script run开发者_StackOverflow中文版 everyday at a set-time. Say exactly at 2:00 P.M. every day.

Is there a way to have it run exactly twice a day?

Not really sure where to start with this. Thanks for the help.


Don't reinvent and use functionality existing for decades on any system: cron

Apart from that: PyPI lists a bunch of cron-related or cron-similar packages:

http://pypi.python.org/pypi?%3Aaction=search&term=cron&submit=search

In addition: Python provides a dedicated 'sched' module:

http://docs.python.org/library/sched.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号