📜  如何在 pytohn 中打开文件对话框 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:06.698000             🧑  作者: Mango

代码示例1
from tkinter import Tk
from tkinter.filedialog import askopenfilename

Tk().withdraw() # Added so Tk window doesn't appear on opening the dialog
filePath = askopenfilename() # Full pile will be returned as string