Commit 6782623a by BellCodeEditor

save project

parent 379a3c98
Showing with 8 additions and 3 deletions
...@@ -7,7 +7,7 @@ path=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','. ...@@ -7,7 +7,7 @@ path=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.
il = [] il = []
for i in path: for i in path:
im=Image.open(i) im=Image.open(i)
il.append(im) il.insert(0,im)
il[0].save('bot.gif',save_all = True,append_images=il[1:]) il[0].save('bot.gif',save_all = True,append_images=il[1:])
......
from PIL import Image,ImageSequence
im = Image.open('dive.gif')
num = 0
for i in ImageSequence.Iterator(im):
i.save('turn/'+str(num)+'.png')
num+=1
...@@ -8,4 +8,4 @@ il=[] ...@@ -8,4 +8,4 @@ il=[]
for i in ph: for i in ph:
im=Image.open(i) im=Image.open(i)
il.insert(0,im) il.insert(0,im)
il[0].save("xbdts.gif", save_all=True,append_images=il[1:]) il[0].save("xbdts.gif", save_all=True,append_images=il[1:])
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment