使用tkinter怎么样?from Tkinter import Tkfrom tkinter.filedialog import askopenfilenameTk().withdraw() # we don't want a full GUI, so keep the root window from appearingfilename = askopenfilename() # show an "Open" dialog box and return the path to the selected fileprint(filename)做完了!