Commit 820f164b by BellCodeEditor

save project

parent 7a3aff6f
Showing with 15 additions and 1 deletions
......@@ -3,7 +3,9 @@ from PIL import Image
rt=Tk()
rt.withdraw()
path=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.png')],initialdir='./')
path=filedialog.askopenfilenames(title='选择图片文件',
filetypes=[('png','.png')],
initialdir='./')
sequence=[]
for i in path:
img=Image.open(i)
......
from tkinter import filedialog,Tk
from PIL import Image
root=Tk()
root.withdraw()
path=filedialog.askopenfilenames(title='选择图片文件',
filetypes=[('png','.png')],
initialdir='./')
img_list=[]
for i in path:
img=Image.open(i)
img_list.append(img)
print(img_list)
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