擅长:python、mysql、java
<p>尝试在常量内存模式下使用<a href="http://xlsxwriter.readthedocs.org/index.html" rel="nofollow noreferrer"><strong>XlsxWriter</strong></a>。在</p>
<ul>
<li>只为Excel/XL2007写入文件</li>
<li><strong>它的工作速度比Openpyxl快得多</strong></li>
<li>提供恒定内存模式。:<a href="http://xlsxwriter.readthedocs.org/working_with_memory.html" rel="nofollow noreferrer">http://xlsxwriter.readthedocs.org/working_with_memory.html</a></li>
</ul>
<p>对于<strong>.xls</strong>文件,我担心没有内存优化的方法。你找到了吗?在</p>