Commit 0d0e3a5d by BellCodeEditor

save project

parent d96c8ff1
Showing with 10 additions and 3 deletions
from tkinter import filedialog from tkinter import filedialog,Tk
from PIL import Image
root = Tk()
root.withdraw()
path = filedialog.askopenfilenames(title='选择图片', path = filedialog.askopenfilenames(title='选择图片',
filetypes=[('All Files','*')], filetypes=[('All Files','*')],
initialdir='./') initialdir='./')
print(path) alist = []
\ No newline at end of file for i in path:
a = Image.open(i)
alist.append(a)
print(alist)
\ 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