Commit 286d6aa7 by BellCodeEditor

save project

parent 5ceceaab
Showing with 3 additions and 4 deletions
......@@ -2,12 +2,11 @@ from tkinter import filedialog, Tk
from PIL import Image
zhu=Tk()
zhu.withdraw()
zhu1=filedialog.askopenfilenames(title="猪猪猪猪猪猪猪猪猪猪猪猪",
zhu1=filedialog.askopenfilename(title="猪猪猪猪猪猪猪猪猪猪猪猪",
filetypes=[('All Files','*')],
initialdir="./")
zhu2=[]
for zhu3 in zhu1:
zhu4=Image.open(zhu3)
zhu2.insert(0,zhu4)
zhu2[0].save("猪猪猪.gif",save_all=True,append_images=zhu2[1:])
zhu2.append(zhu4)
print(zhu2)
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