from picamera import PiCamera
from time import sleep
camera = PiCamera()
camera.start_preview()
sleep(10)
camera.stop_preview()
rc.local也是可执行文件chmod 755 rc.local 在rc.local里面
#!/bin/sh -e
#
# rc.local
sudo python /home/pi/Google\ Drive/11.py &
exit 0
但是当pi开始代码没有开始时:(