Commit d3653b00 by BellCodeEditor

save project

parent d06e9310
Showing with 10 additions and 0 deletions
This diff is collapsed. Click to expand it.
from tkinter import filedialog,Tk
from PIL import Image
root=Tk()
root.withdraw()
path = filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.png')],initialdir='C:\\Users\\Administrator\\Desktop\\resources')
imglist=[]
for i in path:
img=Image.open(i)
imglist.append(img)
imglist[0].save('bot.gif',save_all=True,append_images=imglist[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