简体   繁体   English

如何在Windows上启动python脚本?

[英]How can I launch a python script on windows?

I have run a few using batch jobs, but, I am wondering what would be the most appropriate? 我已经使用批处理作业运行了一些,但是,我想知道什么是最合适的? Maybe using time.strftime? 也许使用time.strftime?

如果要执行重复的计划任务,则Windows上的适当方法是“任务计划程序(Vista)”或“计划任务”(XP,我认为是更早的版本)。

I'd second using the Task Scheduler. 我第二次使用任务计划程序。

I have also read about a 'cron-like' python based application PyCron - http://www.bigbluehost.com/article4.html . 我还阅读了有关基于cron的python应用程序PyCron的信息-http: //www.bigbluehost.com/article4.html If you're from the Unix end of town you might find it more familiar than the Windows scheduler. 如果您来自Unix小镇,则可能会比Windows调度程序更熟悉。 Never used it myself but it might be of interest. 我自己从未使用过它,但可能会很有趣。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM