Commit ed29f397 by BellCodeEditor

save project

parent f756bcef
Showing with 16 additions and 0 deletions
from PIL import Image
from tkinter.filedialog import *
from tkinter import Tk
from tkinter.messagebox import *
w=Tk()
w.withdraw()
q=askquestion("询问","是否使用批量选择?")
if q=="yes":
path=askopenfilename(title="选择文件",
filetypes=[("文件夹","")])
else:
path=askopenfilenames(title="选择多个图片",
filetypes=[("图片文件",".png",".jpg",".jpeg",".bmp")])
print(path)
\ 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