警告:此程序有一个错误,需要进行修复!

规则:当我们编写一个 if 语句时,测试行必须有一个冒号:在行尾。

  • 点击 运行 并读取弹出的错误信息。
  • 在第二个 if 语句的末尾放置一个冒号,就像这样:if variable == "string":
  • 调试此程序,使其正确地测试 "hedgehog"

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)