From 061e0065aad301374637eccf63a126a78494eafa Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 8 Jun 2024 14:15:25 +0800
Subject: [PATCH] save project

---
 d.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/d.py b/d.py
index 74656b2..58101d7 100644
--- a/d.py
+++ b/d.py
@@ -4,13 +4,13 @@ from PIL import Image
 root = Tk()
 root.withdraw()
 path = filedialog.askopenfilenames(title = '选择图片文件',
-                        filetypes = [('ALL Files', '*')],
+                        filetypes = [('png', '.png')],
                         initialdir = "./")
 img_list = []
 for i in path:
-    img = image.open(1)
-    img_list.insert(0,img)
-
+    img = Image.open(i)
+    img_list.append(img)
+print(img_list)
 
 img_list[0].save("bot.gif",save_all = True,
                 append_images = img_list[1:])
\ No newline at end of file
--
libgit2 0.25.0