My_GIF.py
540 Bytes
from tkinter import filedialog,Tk
from PIL import Image
rt=Tk()
rt.withdraw()
path=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.png')],initialdir='./')
sequence=[]
for i in path:
im=Image.open(i)
il.append(img)
sequence[0].save("bot.gif", save_all=True,append_images=sequence[1:])
#from tkinter import filedialog , Tkgg
#from PIL import Image
#s = Tk()
#s.withdraw()
#ph = filedialog.askopenfilenames(title='选择图片文件',filetypes[('png','.png')],initialdir='./')