Commit 624d84c5 by BellCodeEditor

save project

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