14 步:让我们完成爬虫的 if 语句!如果has_scalesTrueeggs_in_water not True ,那么我们知道将动物分类为爬行动物。让我们确保我们在 if 语句下指定它!

  • classify_animal()及其第二个if 语句中,将animal_class my_var
  • 然后,将字符串从"This is a string.""reptile"

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)