第 7 步:让我们添加另一个 if 语句来检查用户是否回答了"moon"

  • 转到逻辑并在,拖出另一个if并将其放在程序的底部。
  • 将测试值更改为"moon" .
  • 在图形中,转到并拖出一个Say命令并将其放在新的 if 语句中。
  • .say()中的字符串更改为"I can't believe I'm on the moon!"

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)