第 6 步:现在让我们调用该函数,以便运行里面的命令。

您可以在定义函数后在程序中的任何位置调用函数。调用必须在函数之外。

  • 在 LOGIC 中,转到并拖出Function Call 。它应该在函数内部缩进!
  • my_function()更改为bridge_scene()
  • 点击运行以查看您在舞台上的功能。

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)