Commit 53ae49e5 by BellCodeEditor

save project

parent 4246fc77
Showing with 7 additions and 4 deletions
from tkinter import filedialog,Tk
from tkinte import filedialog,Tk
from PIL import Image
root=Tk()
root.withdraw()
path=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.png')],initialdir='./')
print(path)
\ No newline at end of file
s=[]
for i in path:
img = Image.open(i)
s.append(img)
s[0].save("bot.git",save_all=True,append_images=s[1:])
\ No newline at end of file
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