原因: videoWriter = cv2.VideoWriter("video.mp4",cv2.VideoWriter_fourcc(*"MJPG"), 25, (w,h)) w,h要和原图的w,h一样