From ee7c1c1f3293a2b1ef23cc68aeed96139eadca25 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Thu, 20 Oct 2022 16:29:17 +0800
Subject: [PATCH] auto save

---
 dive.gif   | Bin 1989963 -> 0 bytes
 diy1.py    | 6 ------
 diy2       | 0
 diy2.py    | 8 ++++++++
 img/0.png  | Bin 0 -> 49535 bytes
 img/1.png  | Bin 0 -> 49029 bytes
 img/10.png | Bin 0 -> 53353 bytes
 img/11.png | Bin 0 -> 53813 bytes
 img/12.png | Bin 0 -> 52997 bytes
 img/13.png | Bin 0 -> 52603 bytes
 img/14.png | Bin 0 -> 51405 bytes
 img/15.png | Bin 0 -> 52073 bytes
 img/16.png | Bin 0 -> 51366 bytes
 img/17.png | Bin 0 -> 51437 bytes
 img/18.png | Bin 0 -> 51344 bytes
 img/19.png | Bin 0 -> 51330 bytes
 img/2.png  | Bin 0 -> 48817 bytes
 img/20.png | Bin 0 -> 50947 bytes
 img/21.png | Bin 0 -> 51199 bytes
 img/22.png | Bin 0 -> 51423 bytes
 img/23.png | Bin 0 -> 51269 bytes
 img/24.png | Bin 0 -> 51462 bytes
 img/25.png | Bin 0 -> 52120 bytes
 img/26.png | Bin 0 -> 51104 bytes
 img/27.png | Bin 0 -> 50077 bytes
 img/28.png | Bin 0 -> 50318 bytes
 img/29.png | Bin 0 -> 50756 bytes
 img/3.png  | Bin 0 -> 49446 bytes
 img/30.png | Bin 0 -> 50606 bytes
 img/31.png | Bin 0 -> 50219 bytes
 img/32.png | Bin 0 -> 50326 bytes
 img/33.png | Bin 0 -> 50504 bytes
 img/34.png | Bin 0 -> 50157 bytes
 img/35.png | Bin 0 -> 49574 bytes
 img/36.png | Bin 0 -> 49324 bytes
 img/4.png  | Bin 0 -> 49375 bytes
 img/5.png  | Bin 0 -> 50315 bytes
 img/6.png  | Bin 0 -> 51344 bytes
 img/7.png  | Bin 0 -> 53273 bytes
 img/8.png  | Bin 0 -> 52890 bytes
 img/9.png  | Bin 0 -> 53342 bytes
 41 files changed, 8 insertions(+), 6 deletions(-)
 delete mode 100644 diy2
 create mode 100644 diy2.py
 create mode 100644 img/0.png
 create mode 100644 img/1.png
 create mode 100644 img/10.png
 create mode 100644 img/11.png
 create mode 100644 img/12.png
 create mode 100644 img/13.png
 create mode 100644 img/14.png
 create mode 100644 img/15.png
 create mode 100644 img/16.png
 create mode 100644 img/17.png
 create mode 100644 img/18.png
 create mode 100644 img/19.png
 create mode 100644 img/2.png
 create mode 100644 img/20.png
 create mode 100644 img/21.png
 create mode 100644 img/22.png
 create mode 100644 img/23.png
 create mode 100644 img/24.png
 create mode 100644 img/25.png
 create mode 100644 img/26.png
 create mode 100644 img/27.png
 create mode 100644 img/28.png
 create mode 100644 img/29.png
 create mode 100644 img/3.png
 create mode 100644 img/30.png
 create mode 100644 img/31.png
 create mode 100644 img/32.png
 create mode 100644 img/33.png
 create mode 100644 img/34.png
 create mode 100644 img/35.png
 create mode 100644 img/36.png
 create mode 100644 img/4.png
 create mode 100644 img/5.png
 create mode 100644 img/6.png
 create mode 100644 img/7.png
 create mode 100644 img/8.png
 create mode 100644 img/9.png

diff --git a/dive.gif b/dive.gif
index 99f1b29..c2cd25f 100644
Binary files a/dive.gif and b/dive.gif differ
diff --git a/diy1.py b/diy1.py
index b2949a4..c3cd96c 100644
--- a/diy1.py
+++ b/diy1.py
@@ -16,9 +16,3 @@ img_list=[] # 建立空列表
 for i in path:  # for循环遍历变量path提取变量i
     # Image.open()方法参数为i赋值给变量img
     img = Image.open(i)
-    # 列表名.append()方法参数为img
-    img_list.append(img)
-# 列表img_list[0].save()方法
-# 参数1文件命名,参数2save_all设为True,参数3append_images设为img_list[1:]取出第二到结尾所有图片
-img_list[0].save("bot.gif",save_all=True,
-                append_images=img_list[1:])
\ No newline at end of file
diff --git a/diy2 b/diy2
deleted file mode 100644
index e69de29..0000000
--- a/diy2
+++ /dev/null
diff --git a/diy2.py b/diy2.py
new file mode 100644
index 0000000..6120e5a
--- /dev/null
+++ b/diy2.py
@@ -0,0 +1,8 @@
+from PIL import Image,ImageSequence  # 导入PIL模块中的Image,ImageSequence模块
+
+img = Image.open("dive.gif")  # Image.open()方法读取gif动图dive.gif并赋值给变量img
+num = 0  # 建立变量num设为0
+# for循环对动图里每一帧静图进行遍历
+for i in ImageSequence.Iterator(img):
+    i.save("img/"+str(num)+".png") # 这里把分解到的每一张静态图保存到当前目录下
+    num += 1  # 每次循环变量num增加1
\ No newline at end of file
diff --git a/img/0.png b/img/0.png
new file mode 100644
index 0000000..e247eeb
Binary files /dev/null and b/img/0.png differ
diff --git a/img/1.png b/img/1.png
new file mode 100644
index 0000000..6dd9f1a
Binary files /dev/null and b/img/1.png differ
diff --git a/img/10.png b/img/10.png
new file mode 100644
index 0000000..3bb9d13
Binary files /dev/null and b/img/10.png differ
diff --git a/img/11.png b/img/11.png
new file mode 100644
index 0000000..76fd329
Binary files /dev/null and b/img/11.png differ
diff --git a/img/12.png b/img/12.png
new file mode 100644
index 0000000..b652ab3
Binary files /dev/null and b/img/12.png differ
diff --git a/img/13.png b/img/13.png
new file mode 100644
index 0000000..c914e7a
Binary files /dev/null and b/img/13.png differ
diff --git a/img/14.png b/img/14.png
new file mode 100644
index 0000000..378694b
Binary files /dev/null and b/img/14.png differ
diff --git a/img/15.png b/img/15.png
new file mode 100644
index 0000000..8e8bd87
Binary files /dev/null and b/img/15.png differ
diff --git a/img/16.png b/img/16.png
new file mode 100644
index 0000000..bacd778
Binary files /dev/null and b/img/16.png differ
diff --git a/img/17.png b/img/17.png
new file mode 100644
index 0000000..8300da8
Binary files /dev/null and b/img/17.png differ
diff --git a/img/18.png b/img/18.png
new file mode 100644
index 0000000..95be816
Binary files /dev/null and b/img/18.png differ
diff --git a/img/19.png b/img/19.png
new file mode 100644
index 0000000..34b205e
Binary files /dev/null and b/img/19.png differ
diff --git a/img/2.png b/img/2.png
new file mode 100644
index 0000000..35613f8
Binary files /dev/null and b/img/2.png differ
diff --git a/img/20.png b/img/20.png
new file mode 100644
index 0000000..60ea0ac
Binary files /dev/null and b/img/20.png differ
diff --git a/img/21.png b/img/21.png
new file mode 100644
index 0000000..d7b9146
Binary files /dev/null and b/img/21.png differ
diff --git a/img/22.png b/img/22.png
new file mode 100644
index 0000000..1bfd5b4
Binary files /dev/null and b/img/22.png differ
diff --git a/img/23.png b/img/23.png
new file mode 100644
index 0000000..3c0996d
Binary files /dev/null and b/img/23.png differ
diff --git a/img/24.png b/img/24.png
new file mode 100644
index 0000000..0263592
Binary files /dev/null and b/img/24.png differ
diff --git a/img/25.png b/img/25.png
new file mode 100644
index 0000000..076c250
Binary files /dev/null and b/img/25.png differ
diff --git a/img/26.png b/img/26.png
new file mode 100644
index 0000000..5eb04b2
Binary files /dev/null and b/img/26.png differ
diff --git a/img/27.png b/img/27.png
new file mode 100644
index 0000000..e419137
Binary files /dev/null and b/img/27.png differ
diff --git a/img/28.png b/img/28.png
new file mode 100644
index 0000000..f298c59
Binary files /dev/null and b/img/28.png differ
diff --git a/img/29.png b/img/29.png
new file mode 100644
index 0000000..42750bd
Binary files /dev/null and b/img/29.png differ
diff --git a/img/3.png b/img/3.png
new file mode 100644
index 0000000..0476373
Binary files /dev/null and b/img/3.png differ
diff --git a/img/30.png b/img/30.png
new file mode 100644
index 0000000..ef1ed3a
Binary files /dev/null and b/img/30.png differ
diff --git a/img/31.png b/img/31.png
new file mode 100644
index 0000000..8b62acb
Binary files /dev/null and b/img/31.png differ
diff --git a/img/32.png b/img/32.png
new file mode 100644
index 0000000..85f2d40
Binary files /dev/null and b/img/32.png differ
diff --git a/img/33.png b/img/33.png
new file mode 100644
index 0000000..00f6069
Binary files /dev/null and b/img/33.png differ
diff --git a/img/34.png b/img/34.png
new file mode 100644
index 0000000..2eac8f3
Binary files /dev/null and b/img/34.png differ
diff --git a/img/35.png b/img/35.png
new file mode 100644
index 0000000..9733eb4
Binary files /dev/null and b/img/35.png differ
diff --git a/img/36.png b/img/36.png
new file mode 100644
index 0000000..7a3be78
Binary files /dev/null and b/img/36.png differ
diff --git a/img/4.png b/img/4.png
new file mode 100644
index 0000000..597f4a4
Binary files /dev/null and b/img/4.png differ
diff --git a/img/5.png b/img/5.png
new file mode 100644
index 0000000..950a184
Binary files /dev/null and b/img/5.png differ
diff --git a/img/6.png b/img/6.png
new file mode 100644
index 0000000..7a50fc6
Binary files /dev/null and b/img/6.png differ
diff --git a/img/7.png b/img/7.png
new file mode 100644
index 0000000..a9a4122
Binary files /dev/null and b/img/7.png differ
diff --git a/img/8.png b/img/8.png
new file mode 100644
index 0000000..15a2036
Binary files /dev/null and b/img/8.png differ
diff --git a/img/9.png b/img/9.png
new file mode 100644
index 0000000..fafe92f
Binary files /dev/null and b/img/9.png differ
--
libgit2 0.25.0