Python打开文件对话框


from tkinter import filedialog
filename = filedialog.askopenfilename(initialdir ='E:/Python')
print(filename)

你可能感兴趣的:(python)