1:安装moviepy库 2:安装IPython库 代码如下: from moviepy.editor import * from IPython.display import Image def Base(path="2.mp4", duration=((0, 4.8), (0, 6.3)), savepath=r"out11.gif"): VideoFileClip(path).\ subclip(duration[0], duration[1]).\ speedx(0.3).\ resize(0.5).\ wri...