Commit 6c9b9c11 by BellCodeEditor

save project

parent 624d84c5
Showing with 9 additions and 5 deletions
from tkinter import filedialog, Tk from tkinter import filedialog, Tk
from PIL import Image from PIL import Image
root = Tk() rt=Tk()
root.withdraw() rt.withdraw()
path = filedialog.askopenfilename(title='选择图片文件',filetypes=[('All Files','*')],initialdir="./") path=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.png')],initialdir='./')
sequence=[]
print(path) for i in path:
img=Image.open(i)
sequence.append(img)
sequence[0].save("bot.gif",save_all=True,
append_images=sequence[1:])
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