擅长:python、mysql、java
<p>用tkinter怎么样?</p>
<pre><code>from Tkinter import Tk
from tkinter.filedialog import askopenfilename
Tk().withdraw() # we don't want a full GUI, so keep the root window from appearing
filename = askopenfilename() # show an "Open" dialog box and return the path to the selected file
print(filename)
</code></pre>
<p>完成!</p>