第5步:用点符号控制你的精灵!

使用精灵的变量名称来给精灵分配动作。 这被称为点符号

  • 点击 ,将 Move Forward 拖动到程序底部。
  • .move_forward() 指令前的名称更改为精灵的名称 astro
  • .move_forward() 指令中的整数更改为 150

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)