from PIL import Image
import os
# 存储文件路径
save_path ="gif_process/png"
im = Image.open("xxx.gif")# 使用Image的open函数打开test.gif图像
index =1for frame in ImageSequence.Iterator(im):# for循环迭代的取im里的帧
file_path = os.path.join(save_path,'{}.png'.format(str(index<