import imageio
def genGif():
#搞几张图片
jpg_paths=["jpg/1.jpg","jpg/2.jpg","jpg/3.jpg"]
gif_images=[]
for path in jpg_paths:
gif_images.append(imageio.imread(path))
imageio.mimsave("test.gif",gif_images,fps=1)
#zhixing
genGif();
转载请注明原文地址:https://ipadbbs.8miu.com/read-2028.html