Repeat 指令

来自GeoGebra Manual
Nuhero讨论 | 贡献2023年12月1日 (五) 08:45的版本 (建立内容为“<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}} ;Repeat( <數值 n>, <程式碼>, <程式碼>, ... ) :重複執行 <程式碼> ''n''…”的新页面)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索
Accessories dictionary.png
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版


Repeat( <數值 n>, <程式碼>, <程式碼>, ... )
重複執行 <程式碼> n 次。
範例:
Turtle()
點選繪圖區左下角的 Animate Play.png 播放按鈕。
Repeat(8, TurtleForward(turtle1, 1), TurtleRight(turtle1, 45°))
烏龜將會移動並畫出一個正八邊形。
© 2024 International GeoGebra Institute