开发者

Python Timed-Script

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜