擅长:python、mysql、java
<p>如果要传递多个参数,可以使用元组</p>
<pre><code>price = 33.3
with open("Output.txt", "w") as text_file:
text_file.write("Purchase Amount: %s price %f" % (TotalAmount, price))
</code></pre>
<p>更多:<a href="https://stackoverflow.com/questions/15286401/print-multiple-arguments-in-python">Print multiple arguments in python</a></p>