Commit 468d9df8 by BellCodeEditor

save project

parent 6f3517e6
Showing with 40 additions and 0 deletions
from tkinter import filedialog,Tk
from PIL import Image
rt=Tk()
rt.withdraw()
ph=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.png')],initialdir='./')
il=[]
for i in ph:
img= Image.open(i)
il.append(img)
il[0].save("Robot.gif", save_all=True,append_images=il[1:])
\ No newline at end of file
Robot.gif

1.7 MB

from tkinter import filedialog,Tk
from PIL import Image
rt=Tk()
rt.withdraw()
ph=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.png')],initialdir='./')
il=[]
for i in ph:
im=Image.open(i)
il.insert(0,im)
il[0].save("gx.gif", save_all=True,append_images=il[1:])
\ No newline at end of file
import pygame
from pygame import locals
pygame.init()
pygame.display.set_mode((800,600))
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
\ No newline at end of file
gx.gif

522 KB

img/0.png

12.7 KB

img/1.png

13.1 KB

img/10.png

13.3 KB

img/11.png

13.4 KB

img/13.png

12.6 KB

img/14.png

12.8 KB

img/15.png

12.7 KB

img/16.png

12.6 KB

img/17.png

12.6 KB

img/18.png

12.6 KB

img/2.png

13.4 KB

img/20.png

10.1 KB

img/21.png

9.62 KB

img/22.png

8.54 KB

img/23.png

9.48 KB

img/24.png

9.97 KB

img/25.png

8.28 KB

img/26.png

7.74 KB

img/27.png

8.31 KB

img/28.png

8.54 KB

img/29.png

9.21 KB

img/3.png

13.6 KB

img/30.png

9.59 KB

img/31.png

9.53 KB

img/32.png

10.2 KB

img/33.png

10.8 KB

img/34.png

10.5 KB

img/35.png

10.3 KB

img/36.png

10.9 KB

img/37.png

10.7 KB

img/38.png

11.2 KB

img/4.png

13.9 KB

img/5.png

14.1 KB

img/6.png

14.1 KB

img/9.png

13.9 KB

pi5.gif

482 KB

from PIL import Image,ImageSequence
im=Image.open('dive.gif')
num=0
for i in ImageSequence.Iterator(im):
i.save('turn/'+str(num)+'.png')
num+=1
\ No newline at end of file
turn/0.png

48.4 KB

turn/1.png

47.9 KB

turn/10.png

52.1 KB

turn/11.png

52.6 KB

turn/12.png

51.8 KB

turn/13.png

51.4 KB

turn/14.png

50.2 KB

turn/15.png

50.9 KB

turn/16.png

50.2 KB

turn/17.png

50.2 KB

turn/18.png

50.1 KB

turn/19.png

50.1 KB

turn/2.png

47.7 KB

turn/20.png

49.8 KB

turn/22.png

50.2 KB

turn/23.png

50.1 KB

turn/24.png

50.3 KB

turn/25.png

50.9 KB

turn/26.png

49.9 KB

turn/27.png

48.9 KB

turn/28.png

49.1 KB

turn/29.png

49.6 KB

turn/3.png

48.3 KB

turn/30.png

49.4 KB

turn/32.png

49.1 KB

turn/33.png

49.3 KB

turn/35.png

48.4 KB

turn/36.png

48.2 KB

turn/4.png

48.2 KB

turn/5.png

49.1 KB

turn/6.png

50.1 KB

turn/8.png

51.7 KB

turn/9.png

52.1 KB

xbdts.gif

1.7 MB

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