Commit 954dbc86 by BellCodeEditor

save project

parent 5cefb557
Showing with 15 additions and 11 deletions
from tkinter import filedialog,Tk from tkinter import filedialog, Tk
from PIL import Image from PIL import Image
rt=Tk()
rt.withdraw()
ph=filedialog.askopenfilenames(title='选择图片文件',filetypes[('png','.png')],initialdir='./')
il=[] root = Tk()
img=Image.open('dive.gif') root.withdraw()
for i in ph: path = filedialog.askopenfilenames(title='选择图片文件',
im=Image.open(i) filetypes=[("png", ".png")],
il.insert(0,im) initialdir="./")
il[0].save("Robot.gif", save_all=True,append_images=il[1:])
\ No newline at end of file sequence = []
for i in path:
img = Image.open(i)
sequence.insert(0, img)
sequence[0].save("dive.gif", save_all=True,
append_images=sequence[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