1 # -*- coding: utf-8 -*- 2 """ 3 Created on Tue Apr 14 01:55:48 2020 4 5 @author: 49594 6 """ 7 8 from PIL import Image 9 im = Image.open('zhuigan.gif') # 读入一个GIF文件 10 try: 11 im.save('picframe{:02d}.png'.format(im.tell())) 12 while True: 13 im.seek(im.tell()+1) 14 im.save('picframe{:02d}.png'.format(im.tell())) 15 except: 16 print("处理结束")
好玩Python——PIL项目实训(三)——gif
猜你喜欢
转载自www.cnblogs.com/zzalovelyq/p/12695416.html
今日推荐
周排行