Repeat 指令

来自GeoGebra Manual
跳转至: 导航搜索
Accessories dictionary.png
本页为官方文件,一般使用者无法修改,若有任何误谬,请与官方联络。如欲编辑,请至本页的开放版


Repeat( <数值 n>, <程式码>, <程式码>, ... )
重复执行 <程式码> n 次。
范例:
Turtle()
点选绘图区左下角的 Animate Play.png 播放按钮。
Repeat(8, TurtleForward(turtle1, 1), TurtleRight(turtle1, 45°))
乌龟将会移动并画出一个正八边形。
© 2024 International GeoGebra Institute