我想创建一个弹出文件对话框的可执行程序,然后继续打开,读取,编辑,然后将excel文件保存为新文件。
目前,我已经得到了以下小脚本,我试图让表单打开/读取单元格' F8'并至少保存excel文件,但没有任何结果。
from Tkinter import Tk
from tkFileDialog 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)
pip install pyexcel
sheet = pyexcel.get_sheet(file_name = filename)
sheet.content
print(sheet["F8"])
有关改进上述脚本的任何建议吗?