擅长:python、mysql、java
<p>在文档中使用可选的<code>font</code>参数<a href="http://docs.python.org/2/library/turtle.html#turtle.write">^{<cd2>}</a>:</p>
<blockquote>
<p><code>turtle.write(</code><em>arg</em>, <em>move=False</em>, <em>align="left"</em>, <em>font=("Arial", 8, "normal")</em><code>)</code><br/>
<strong>Parameters:</strong> </p>
<ul>
<li><strong>arg</strong> – object to be written to the TurtleScreen</li>
<li><strong>move</strong> – True/False </li>
<li><strong>align</strong> – one of the strings “left”, “center” or right” </li>
<li><strong>font</strong> – a triple (fontname, fontsize, fonttype)</li>
</ul>
</blockquote>
<p>所以您可以做一些类似<code>turtle.write("messi fan", font=("Arial", 16, "normal"))</code>的事情来将字体大小更改为16(默认为8)。</p>