Commit 6032b15c by BellCodeEditor

save project

parent 9da647cb
Showing with 9 additions and 1 deletions
from tkinter import filedialog, Tk
path = filedialog.asksaveasfilename(title="选择图片文件"
filetype=[("ALL Files","*")],
filetypes=[("ALL Files","*")],
initialdir="./")
print(path)
\ No newline at end of file
from PIL import Image,ImageSequence
img = Image.open("dive.gif")
for i in ImageSequence.Iterator(img):
i.save("img/"+str(num)+".pug")
num += 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