python - EC2 实例上的 xlsxwriter

标签 python excel amazon-web-services amazon-ec2 xlsxwriter

我正在运行 Python 脚本,在其中编写 excel 文件以将它们放入我的 EC2 实例中。但是,我注意到这些 excel 文件虽然已创建,但仅在代码停止后才会放入服务器中。

我猜它们保存在缓存中,但我希望它们立即添加到服务器中。代码中是否需要添加“commit()”?

非常感谢

最佳答案

I guess they are kept in cache but I would like them to be added to the server straight away. Is there a "commit()" to add to the code?

没有。无法像 CSV 或 Html 文件一样流式传输或写入部分 xlsx 文件,因为该文件格式是 Zip 容器中 XML 文件的集合,并且在文件关闭之前无法生成。

关于python - EC2 实例上的 xlsxwriter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46300696/

相关文章:

python - "You need version 1.5.0 or better of the Subversion Python bindings"使用 mailer.py

excel - Index + Match 函数根据特定条件将值乘以百分比

amazon-web-services - 如何在 VPC 上下文中将我的 AWS::EC2::DBSecurityGroup 连接到我的 AWS::RDS::DBSecurityGroup?

amazon-web-services - 具有证书 DNS 验证的 CloudFormation 堆栈托管区域删除

c# - 从 .NET 中的 VBA 函数访问返回值?

amazon-web-services - AWS Lambda 层能否在函数/处理程序不调用该层的情况下拦截 Lambda 函数处理程序?

python - Python 的 Tkinter 字段为空白

安装 Immunity Debugger 后 Python IDLE 不启动

Python:回调、委托(delegate)、...?什么是常见的?

vba - 添加缺失日期 VBA