from thinter 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.insert(0,img)