你的代码不对。 死循环里面,31行循环20次后,会close。然后下一次add_frame就会失败。因为close了,就不能add了。 正确的程序: https://book.openmv.cc/example/06-Video-Recording/mjpeg.html