第 1 步:让我们创建一个运行公园场景的函数!

请记住, Define Function行通过创建函数并为其命名来定义函数。

  • 单击逻辑,转到并在程序底部放置Define Function
  • 将函数名称从my_function()更改为park_scene()
  • 在图形中,通过在def行下缩进四个空格来将Park放入您的函数中。

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)