Python打开文件对话框 2017-09-17 本文已影响0人 王大垚 import tkFileDialog fileName = tkFileDialog.askdirectory() # 选择文件夹,获取文件夹路径