Commit 77655ac3 by BellCodeEditor

save project

parent d75f60fe
Showing with 8 additions and 2 deletions
......@@ -4,4 +4,10 @@ from PIL import Image
root = Tk()
root.withdraw()
path = filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png ','.png')],initialdir='./')
print(path)
\ No newline at end of file
list1=[]
for i in path:
img=Image.open(i)
list1.append(img)
list1[0].save("b1.gif",save_all=True,append_images=list1[1:])
\ No newline at end of file
This diff is collapsed. Click to expand it.
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