天天看点

window设置定时任务执行python脚本

首先打开windows自带的任务计划程序:

<a href="https://s2.51cto.com/wyfs02/M01/9B/36/wKiom1lfWkjwFckdAACBqifsLAY037.png" target="_blank"></a>

<a href="https://s1.51cto.com/wyfs02/M01/9B/36/wKioL1lfW02SdrENAAAyGWt4kiM537.png" target="_blank"></a>

<a href="https://s3.51cto.com/wyfs02/M00/9B/36/wKioL1lfW02A2ALcAAApEimJdK4823.png" target="_blank"></a>

<a href="https://s3.51cto.com/wyfs02/M01/9B/36/wKiom1lfW03RxC3BAAApBLVLPhw511.png" target="_blank"></a>

<a href="https://s3.51cto.com/wyfs02/M01/9B/36/wKioL1lfW02QmBorAAApdMQqNwY817.png" target="_blank"></a>

<a href="https://s2.51cto.com/wyfs02/M02/9B/37/wKiom1lfW06ibqxXAAAqGZvL5C8012.png" target="_blank"></a>

注:添加参数那里为python脚本所在的位置,起始于可填可不填,程序或脚本那里如果设置了环境变量可以直接填python.exe。

<a href="https://s1.51cto.com/wyfs02/M00/9B/36/wKiom1lfW0yQB_hCAAA27gVyzIg093.png" target="_blank"></a>

本文转自 王家东哥 51CTO博客,原文链接:http://blog.51cto.com/xiaodongge/1945396