第 6 步:如果用户选择海滩,让我们将背景更改为海滩!

只有在测试语句为真时才应该运行的任何命令必须在 if 块内缩进。

  • .say()中的字符串更改为"I love going to the beach!"
  • 并拖出Summer 。将其放在 if 语句中

  • 点击运行并在询问气泡中输入beach以检查您的工作。

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)