0
我想用spyder中的filedialog.askopenfilenames來選擇文件和文件夾。我的Python是2.7.12。filedialog - 返回地址u'/ path/to/the/file'而不是'path/to/the/file'
我的代碼:
import tkFileDialog as filedialog files = filedialog.askopenfilenames(initialdir = "/media/note/Results", title = "Select zipped files", filetypes = [('Zip files', '.zip')])
,並返回:
(u'/media/note/Results/CTR1.zip', u'/media/note/Results/CTR2.zip')
這是什麼 'U' 開頭?我可以擺脫它嗎?
謝謝!