crontab -e 将指令写入其中 @reboot /home/pi/***.sh 就会开机启动.sh文件 可将运行Python脚本的命令放在里面 例如: cd /home/pi/ python3 test.py 参数