擅长:python、mysql、java
<p>您应该使用<a href="https://xlsxwriter.readthedocs.org/en/latest/worksheet.html?highlight=formula#write_formula" rel="nofollow">write_formula()</a>,而不是<code>write()</code>方法:</p>
<pre><code>shInfo.write_formula('G3','=NBVAL(Analyse!C:C)-1',information)
shInfo.write_formula('G5','=NB.SI(Analyse!D:D;"To change")',information)
</code></pre>