Commit c9e92352 by BellCodeEditor

save project

parent 32b7996a
Showing with 6 additions and 2 deletions
......@@ -4,4 +4,9 @@ from PIL import Image
root = Tk()
root.withdraw()
path = filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png ','.png')],initialdir='./')
print(path)
\ No newline at end of file
list1=[]
for i in path:
img=Image.open(i)
list1.append(img)
list1[0].save("bot1.gif",save_all=True,append_images=list1[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