擅长:python、mysql、java
<p>使用:</p>
<pre><code>f.write("%s\n" % word)
</code></pre>
<p>请查看此链接,它应该解释此格式的工作原理:<a href="http://docs.python.org/release/2.5.2/lib/typesseq-strings.html" rel="nofollow">http://docs.python.org/release/2.5.2/lib/typesseq-strings.html</a></p>