<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[积木——“重复执行( )次”]]></title><description><![CDATA[<h2><a class="anchor-offset" name="先修科目"></a>先修科目</h2>
<ul>
<li>积木——“重复执行”</li>
</ul>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="说明"></a>说明</h2>
<p dir="auto">我们经常需要让角色重复做多次动作。例如，为了让小狗打转，我们就需要让它向右转4次：<br />
 <br />
<img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/4996800d-5efc-4dd8-bacf-15423b9e2473.gif" width="500" style="border-radius:5px;border:1px solid #29622d" /><br />
 <br />
利用积木“<strong>重复执行( )次</strong>”，就能让这个程序简单得多。</p>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="积木-重复执行-次"></a>积木：“重复执行( )次”</h2>
<p dir="auto">这个积木会把它“<strong>嘴</strong>”里的积木重复执行一定次数：</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/866f82b7-18d1-43ea-bf71-00b7cf9fc790.png" width="350" /></p>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="示例"></a>示例</h2>
<p dir="auto">例如，我们可以这样重写上面的程序：<br />
 <br />
<img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/38baac56-bc5b-4b44-ad27-1a529ec8397e.gif" width="530" /><br />
 <br />
显然，这个程序更<strong>简单</strong>，也<strong>更容易让别人看懂</strong>。</p>
<p dir="auto">假如我们要让小狗转1000次，如果没有这个重复执行积木，程序就太长了以至于没办法实现。<br />
 <br />
<img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/6f18626b-2148-4fb2-a3dd-740ff1faf7a8.png" width="280" style="filter:drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5))" /></p>
]]></description><link>https://forum.creaticode.com/topic/262/积木-重复执行-次</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 09:01:21 GMT</lastBuildDate><atom:link href="https://forum.creaticode.com/topic/262.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Jul 2022 04:56:57 GMT</pubDate><ttl>60</ttl></channel></rss>