From 1f78ee9ff69dce6b34776c53a5f6ab9184d3cfde Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 27 Nov 2021 09:27:26 +0800
Subject: [PATCH] auto save

---
 b.py      | 6 +++---
 xbdts.gif | Bin 1787436 -> 0 bytes
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/b.py b/b.py
index 19f571e..667222a 100644
--- a/b.py
+++ b/b.py
@@ -3,9 +3,9 @@ from PIL import Image
 
 rt=Tk()
 rt.withdraw()
-ph=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.png')],initialdir='resources'')
+ph=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.png')],initialdir='./')
 il=[]
 for i in ph:
     im=Image.open(i)
-    il.insert(0,im)
-il[0].save("xbdts1.gif", save_all=True,append_images=il[1:])
\ No newline at end of file
+    il.append(im)
+il[0].save("xbdts.gif", save_all=True,append_images=il[1:])
\ No newline at end of file
diff --git a/xbdts.gif b/xbdts.gif
index 2b3d522..c026579 100644
Binary files a/xbdts.gif and b/xbdts.gif differ
--
libgit2 0.25.0