标签:
#coding:utf-8
from tkinter import *
from tkinter import filedialog
root = Tk()
root.filename = filedialog.askopenfilename(initialdir = "d:/",title = "选择文件",filetypes = (("jpeg files","*.jpg"),("all files","*.*")))
print (root.filename)
标签:
原文地址:http://www.cnblogs.com/lianrenjujishou/p/5136163.html