@echo off 
D:
cd D:\study\Python\project\AutomaticLogin\
python test1.py

xxx.bat文件复制到windows的自启动文件夹内,即可开机自启动python程序

win + r 输入shell:startup直接打开自启动文件夹