Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试以 xls 格式导出一些数据。
def export_to_xls(self): workbook = xlsxwriter.Workbook('FileName'+fields.Date.context_today(self)+'.xls') // Skipped some code here.
上面的代码工作正常并将 xls 文件保存在/home/目录中。
/home/
我需要打开浏览器的保存文件对话框,而不是在代码中指定路径。我怎样才能做到这一点?