Commit 5f7f63a1 by BellCodeEditor

save project

parent 4a991988
Showing with 5 additions and 8 deletions
...@@ -3,10 +3,7 @@ from PIL import Image ...@@ -3,10 +3,7 @@ from PIL import Image
rt=Tk() rt=Tk()
rt.withdraw() rt.withdraw()
path=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.png')],initialdir='./') path = filedialog.askopenfilenames(title='选择图片文件',
sequence=[] filetypes=[('All Files','*')],
for i in path: initialdir="./")
img=Image.open(i) print(path)
sequence.append(img) \ No newline at end of file
sequence[0].save("bot.gif",save_all=True,
append_images=sequence[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