10 步:使用小时值,我们可以使用提供的功能来改变舞台上的场景。检查get_time_of_day()的代码。这个函数返回什么?

  • 在 LOGIC 中,转到并将Call w/ Parameter into Variablemain()的底部。
  • my_var更改为time_of_day 。将函数从my_function()更改为get_time_of_day()
  • 在括号内,将参数从my_parameter更改为my_hour

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)