第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)